Re: [AD] TRUE and FALSE

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On April 22, 2003 08:13 pm, Ben Davis wrote:
> On Tuesday 22 April 2003 11:55 pm, Thomas Fjellstrom wrote:
> > Well, for my VM, TRUE will be -1 to help with some of the operators... As
> > IIRC I can turn && into an & can I not?
>
> You can, except you'll prevent people from doing things like:
>
> if (yay && yay->whee == 1)
>
> where 'yay' might be a null pointer.
>

EEEhhhh. the VM doesn't have pointers. Im saying I can compile a && (in my 
language),  into a &. That example really doen't make sense ;)

-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/