yank unary '+'?

Don nospam at nospam.com
Sun Dec 6 11:28:05 PST 2009


Andrei Alexandrescu wrote:
> Is there any good use of unary +? As an aside, Perl programs do use it 
> occasionally for syntactic disambiguation :o).
> 
> Andrei

In theory, it could be used in floating point for emphasizing that 0.0 
is +0.0 and not -0.0. But that may not be what you mean.
Outside of literals, the number of cases I've seen is
+(+(+(+(+0))))




More information about the Digitalmars-d mailing list