Re: Swap and pass-by-reference

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

G'day

I just had a quick look into the past and saw a discussion in late 2009 about pass by reference. Has the situation changed at all? Reason I ask regards the RosettaCode question 'Generic Swap'; an Euphoria solution would seem to require pass by reference (or else something uniquely Euphorian that I'm ignorant of.)

Currently Euphoria can't do a generic swap.

I expect that either pass-by-reference and/or a swap operator will be implemented for Euphoria before too long.

I did start to do a swap operator but due to time constraints with getting v4.0 "out the door", work was suspended on it. I got it working in the interpreter and partly working in the translator. It would look like this ...

    a <=> b 

where 'a' and 'b' can be any Euphoria data type and the data types of 'a' and 'b' were compatible with each other.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu