[Newcompiler] Re: NewCompiler-ms.273.mcz

Mathieu Suen mathieusuen at yahoo.fr
Sat Sep 8 12:48:18 UTC 2007


On Sep 8, 2007, at 12:39 PM, Klaus D. Witzel wrote:

>> I remove the literal comparison since my InstructionCompaire dose  
>> it implicitly.
>> but #literalEqual: dose the same than #=:
>>
>> Object>>literalEqual: other
>>
>> 	^ self class == other class and: [self = other]
>
> I know, I was also puzzled at the time when I made more  
> BytecodeGenerator methods use #literalEqual: but I agree with the  
> initial author, since that is the best place where people can  
> override independent of #= (and I think that a candidate for such  
> override will be Float, partly because of Float>>#nan ;-)

Now I think about it for Float>>#nan  #= don't need to be override  
because:

Float nan == Float nan -> true

So I nned to use literalEqua inside InstructionCompaire

Thanks
	Mth

	

	
		
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com


More information about the Newcompiler mailing list