On 6 Aug 2008, at 11:34, Yen-Ju Chen wrote:

> On Wed, Aug 6, 2008 at 4:59 PM, David Chisnall <[EMAIL PROTECTED]>  
> wrote:
>> On 6 Aug 2008, at 04:00, Yen-Ju Chen wrote:
>>
>>>   I like Mélodie more.
>>
>> Seems to be a consensus then.  Eric, can you move it to Services/ 
>> User/
>> Melodie?
>>
>>>   By the way, NSRange is still not working in Smalltalk and I cannot
>>> find a way to fix it.
>>>   I have tried again on latest fixed LLVM and Smalltalk trunk.
>>
>> Did you run exampes/nsrange.st?  Did it give you an error?  Can you
>> send me a test case that fails?
>
> I did run the examples/nsrange.st and the errors comes from
> -substringFromRange:.
> It complains out of range, something like random number (3234123,  
> 25232}.
> I will send you the output tomorrow when I have access to linux.
> I suspect that -rangeValue from NSValue is not correctly sent to
> -substringFromRange.
> Maybe it passes NSRange by address as object instead of by value ?
> Just a guess.

I think this is probably an LLVM bug.  I am using the new stuff for  
passing structures as arguments (and getting structures as return  
values), which is not yet well tested.  Are you running this on Linux/ 
PowerPC?  It works on FreeBSD/x86, which I think has the same calling  
convention as Linux/x86 (i.e. pretty much everything passed on the  
stack).  If so, you could file a bug against LLVM for not conforming  
to the platform ABI calls.  If you're on x86, then it might be my bug  
and I'll take a closer look.

David
_______________________________________________
Etoile-dev mailing list
Etoile-dev@gna.org
https://mail.gna.org/listinfo/etoile-dev

Reply via email to