Re: pass by ref
- Posted by jimcbrown (admin) Feb 12, 2016
- 2001 views
Actually, dcuny wrote about this a year ago:
I thought that was more about the number of parameters/return values rather than the types.
Well, both aspects were mentioned. http://openeuphoria.org/forum/m/126202.wc and your response http://openeuphoria.org/forum/m/126215.wc
I also think I mentioned that what dcuny wanted was entirely doable with a preprocessor (compile (or rather preprocessor) time errors and syntax sugar). So, if someone else wrote one, and we had an actual proof of concept to work with, then it would be a lot easier to get this sort of change in. (Not that the acceptance is guaranteed - it's kind of confusing to have both multiple assignment and desequencing imvho, and desequencing is much more versatile in that stuff like value() doesn't have to be rewritten to make use of the new functionality.)
In any case, as was said before, we could implement all these checks in the parser, but with respect to desequencing, instead of adding another feature. I think the sticking point is that we don't have a way to specify strict type checking (or checking on # of ret vals) on return values today.