Not logged inOpenClonk Forum
Up Topic Proplist references

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to PeterW
Hm, I guess you are right. This kind of thing would be required for a correct implementation.

On the other hand, it got me thinking: Do we really need references anyway? Couldn't we just make "expr[expr] = expr" and "variable = expr" the grammar rules, and code everything in there? We would need to kill:
* Local/Global/VarNamed - Should be deprecated
* Reference parameters - I guess returning arrays is the cleaner solution anyway
* Reference return values - I think I'm about the only one that actually used that feature
* "(bla = x) = y" - yeah, like anyone actually does this kind of nonsense.

On the plus side, we might get a lot of simplification on the engine side, plus maybe even some speed. Am I overlooking something?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill