Hi David,
I'm having trouble with selectors (thanks for adding support for them though :))
Is this how I should make a smalltalk method return a selector?
test [
^ 'hello' selValue.
]
I've tried calling this from Objective-C and the returned selector
isn't the same as @selector(hello)
It seems to not be boxed properly; I put an NSLog in
SelectorForCString and the C string is garbage rather than 'hello'.
In CodeGenModule::BoxValue for the ':' case I put a V->dump() which printed:
%selValue5 = phi i8* [ %13, %small_int_messageselValue1 ], [
%17, %real_object_messageselValue2 ] ; <i8*> [#uses=0]
One more thing that would be nice to have is access to instance
variables from with blocks. eg:
NSObject subclass: SmalltalkTool
[
| p |
run [
p := 'hi'.
p log.
[ p log. ] value.
]
]
Also, I tested subclassing a class defined in the same smalltalk file,
looks good!
Thanks,
Eric
_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev