[Gambas-user] Issue 194 in gambas: "IIf" is buggy

gambas at ...2524... gambas at ...2524...
Thu Jan 19 03:14:19 CET 2012


Comment #3 on issue 194 by emil.len... at ...626...: "IIf" is buggy
http://code.google.com/p/gambas/issues/detail?id=194

I'm afraid that fix does not work for pure objects? (A truncated  
class-pointer will be sent to VALUE_convert, and it will overwrite the  
higher bits of *PC).

I think setting (code & 0x1F) to a special value (maybe 0x1F) indicating  
that both operands are of the same type, i.e. no conversion has to be done,  
can be a good idea to prevent this...





More information about the User mailing list