www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Operators - be careful what you ask for

I have to laugh. I just spent half an hour or so trying to find a bug in my
code. I couldn't see the trees for the forest.

I had coded ...

 version(Posix)   lOutText = lPrefix ~ lCmdItem;

but what I should have coded was ...

 version(Posix)   lOutText ~= lPrefix ~ lCmdItem;

One character makes a *huge* difference!

Of course there was a lot of other code around this which made visual
inspection a bit tough. Oh well, just a salutary tale ;-)

-- 
Derek
Melbourne, Australia
27/05/2005 5:19:41 PM
May 27 2005