Neither the SmallInt nor BigInt classes implement ifTrue:ifFalse yet. If SmallInt doesn't implement a method, then the compiler promotes it to a BigInt and tries again. The implementation of BigInt is in Support. Patches welcome :-)
David On 12 Aug 2008, at 10:22, Yen-Ju Chen wrote: > Sorry for another quick post. This statement also gives error: > > (1 < 2) ifTrue: [ 'true' log.] ifFalse: [ 'false' log.]. > > st: Uncaught exception NSInvalidArgumentException, reason: Can not > determine type information for -[BigInt ifTrue:ifFalse:] > > Did I do anything wrongly ? > > Thanx. > > Yen-Ju > > > On Tue, Aug 12, 2008 at 5:03 PM, Yen-Ju Chen <[EMAIL PROTECTED]> > wrote: >> Not sure this is a bug, but this statement gives error (nothing in >> quotation): >> >> a := ''. >> >> Parse error on line (nil). Unexpected token at character (nil) >> while parsing: >> (nil) >> ERROR: Removing exception handler that is not on top of the stack. >> (You probably called return in an NS_DURING block.) >> >> Thanx. >> >> Yen-Ju >> > > _______________________________________________ > Etoile-dev mailing list > [email protected] > https://mail.gna.org/listinfo/etoile-dev _______________________________________________ Etoile-dev mailing list [email protected] https://mail.gna.org/listinfo/etoile-dev
