-
Notifications
You must be signed in to change notification settings - Fork 0
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
Reference Operator "&" RFC #323
Comments
The implementation of this expression can be quite complex, not only for the compiler but also for the users.
Is it possible to consider pasting the AND(&) symbol to the SAME(=) symbol?
In the SB documentation I did not see that this expression is reserved in something. And reduces the time that has to be invested to add the expression. this without adding possible critical issues in this new syntax #261 |
this is not allowed in latest SB. you can't use same name for a constant and variable.
in future it will be possible to use reference as an argument to function:
so, no, it should be treated differently |
i think i am getting confused. the constant wait wait, so if oh my god, the new Sanny builder syntaxes make me dizzy 😵💫
Are you going to set up a temporary variable system that does not affect the use of local and global variables used by the script being developed? or how will that work? can you give an example |
you can't use same name (foo) for const and variable. you will get a compiler error. it has nothing to do with & and this proposal.
something like this, not sure what exactly yet |
Given a variable
var
of typeX
, expression&var
can result in the following commands:X
is aCar
class,&var
isGET_VEHICLE_POINTER var
X
is aChar
class,&var
isGET_PED_POINTER var
X
is anObject
class,&var
isGET_OBJECT_POINTER var
&var
isGET_VAR_POINTER var
Given a label
@label
, expression&@label
results in:GET_LABEL_POINTER @label
Examples:
The text was updated successfully, but these errors were encountered: