[squeak-dev] Re: I really miss a binary bitOr: selector for integers

Ian Trudel ian.trudel at gmail.com
Tue May 18 15:52:31 UTC 2010


2010/5/18 Andreas Raab <andreas.raab at gmx.de>:
> setFlag: aBool
>
>  flags := aBool ifTrue:[flags | FlagConstant] ifFalse:[flags & FlagConstant
> not].

I consider this ambiguous and confusing with passing parameters in a block:

[:flags | doSomething with: flags ]

Ian.
-- 
http://mecenia.blogspot.com/



More information about the Squeak-dev mailing list