Re: Pass by Reference

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...

The most compelling reason to disallow it in Euphoria is it would transform the language into something that is no longer Euphoria. So that would be a judgment call - an matter of opinion.

No. The language could remain exactly the same, just the implementation change. If the parser analysed the program and determined PBR opportunites it could then reshape the appropriate calls. Perhaps even more radically, ref-counting could/should be dropped as well and certain memory allocations/deallocations done on the outside, by the caller.

Sure, it would require a massive rewrite but the performance gain could be similarly massive.

Oh. Too over the top?

Spock

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu