Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pointers in gdscript #7212

Closed
ghost opened this issue Jul 6, 2023 · 2 comments
Closed

Add pointers in gdscript #7212

ghost opened this issue Jul 6, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 6, 2023

Describe the project you are working on

I'm working on a 2.5D game

Describe the problem or limitation you are having in your project

In my 2.5d game, I'd like to control memory without using c++ or c#, totally natively.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

The addition of pointers will allow you to control memory as you wish without using other languages that require compilers, but I'd like this feature to be optional, as it is in C#.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Example:

     var *ptr_a = &a
      
     print(ptr_a)

If this enhancement will not be used often, can it be worked around with a few lines of script?

No, I don't think that's possible.

Is there a reason why this should be core and not an add-on in the asset library?

Yes, perhaps using c++ language with gdextention or c#.

@ghost ghost changed the title Added pointers in gdscript Add pointers in gdscript Jul 6, 2023
@Calinou
Copy link
Member

Calinou commented Jul 6, 2023

Duplicate of #2817 and/or #3497.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants