[squeak-dev] Re: becomeForward: alternative
Paolo Bonzini
bonzini at gnu.org
Fri Sep 19 16:19:59 UTC 2008
> Even if you really need to set
> image.private to TRUE or FALSE explicitly, you can just do
>
> object_image->image.private = !!(options & LINK_OPTION_PRIVATE)
>
> and if you don't, you can drop the !!.
>
> I'd really rather just not write C though.
Then what about C++ (but actually C99 too):
object_image->image.private = (bool) (options & LINK_OPTION_PRIVATE)
then? Hmmm... I guess this is not what you meant!
Paolo
More information about the Squeak-dev
mailing list
|