On 25 Oct 2008, at 19:04, Günther Noack wrote:
> Selectors.st:
> 'trullala' performSelector: ('hash' selValue).
> It crashes with "edlc: Uncaught exception NSInvalidArgumentException,
> reason: Can not determine type information for -[NSConstantString ]".
This code is incorrect. Try:
'trullala' performSelector: 'hash'.
Or, better:
'trullala' performSelector: #hash.
You shouldn't call selValue directly - the compiler will insert this
call for you.
> Segfault.st:
> 'a string' class name log.
> This produces a segfault in objc_msg_dispatch.
Do you get any warnings about name being a polymorphic selector? I
suspect name is returning a char*, but the compiler is finding one
that returns an object, so it's trying to send a message to it
directly. Also, is there a reason you didn't do:
'a string' className log.
> The Smalltalk files needed to reproduce it are attached.
No they aren't...
David
_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev