Re: Swap and pass-by-reference

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...
    a <=> b 
{a,b} = {b,a} 

(or whatever syntax you lot settle on for multiple assignment) would be a more useful addition to the language.

I am surprised no-one has suggested swap(a,b) be implemented via a pre-processor.

Regards, Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu