Re: Pass by Reference

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

The Euphoria way would be to use a global or file-level variable for large sequences that need to be manipulated in place. Just look at the source of the interpreter itself.

Not that that's a bad thing, it just doesn't scale beyond a certain point -- admittedly, a pretty large point.

Google's Go language does pass by value on everything, but has pointers, and slices are pointers to arrays. So with pointers and slices you can manipulate large data structures in place.

Then again, golang folks are as adamant of its features and/or lack of other features as we Euphorians are. *shrug*

The question is whether you are willing to perform your task in an idiomatic way or try to force the language to doing things your way.

EDIT Just like me and this damned creole markup. Grr.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu