death to case sensitivity !

Started by meems, February 28, 2018, 20:31:37

Previous topic - Next topic

col

Quoteinteresting to note that it is 'illegal' in c++ to do it (which is what monkey2 compiles into).
As it's 'trans-piled' into c++ you can prepend anything you want for the c++ code. It would be probably end up as something like bb_varname in c++ when the coder used _varname in the monkey code.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

iWasAdam

Just had a quick look into the transpiled sources...

mx2 code
field _gameTrigger:int = 400

transpiled code
bbInt m__0gameTrigger=400;

col

Interesting that it contains a double underscore.
I can understand not starting variable names with underscore(s) as there is a general rule that they are reserved for the compiler chain, but 'containing' underscores... I'm not sure why that's a rule in c++. Meh... in the meantime... on with some coding :)
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."