From: Andrei Alexandrescu \(See Website for Email\) (andrewalex_at_[hidden])
Date: 2004-07-09 11:09:29
"Vladimir Prus" <ghost_at_[hidden]> wrote in message
> But the same user will be equally unprepared to unspecified evaluation
> A = get(), get(), get();
> and in
> A.assign_list(get())(get())(get()) ;
> There's nothing specific about operator,();
There is, sigh. operator,() has a special regime among operators. It's
called the /sequencing/ operator. It does that, /sequencing/, like a champ.
Pretty much nothing else. Other operators don't specify the order of
evaluation. This one (and && and ||) does. When overloading it, that
important property of operator,() is lost.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk