Le 11 juil. 08 à 22:28, David Chisnall a écrit :

> On 11 Jul 2008, at 15:04, Quentin Mathé wrote:
>
>> ok.
>>
>> Everything compiles fine with a fresh checkout of LLVM repository
>> (r53434) :-)
>> Now I get a segfault after the parsing and before anything seems to  
>> be
>> logged by the Smalltalk code. Here is the stack trace:
>
> I found the bug.  I was adding 2 to an array index twice instead of
> once.  Ho hum.

:-) Works great for me now. I haven't really played with it yet though.

> I've tweaked the tool slightly so you can have any class you want
> (rather than just SmalltalkTool) for your initial class.  The class
> name is specified with -c.  I've also created an examples directory -
> please put Smalltalk examples in here.  I've started with just one, a
> simple ls command:
>
> NSObject subclass: LS
> [
>       run
>       [
>               | fm files out |
>               fm := NSFileManager defaultManager.
>               files := fm directoryContentsAtPath:'.'.
>               out := NSFileHandle fileHandleWithStandardOutput.
>               files printOn:out.
>               files foreach:[ :x | x printOn:out. '\n' printOn:out. ].
>       ]
> ]
>
> This is run with:
>
> ./obj/st -f examples/ls.st -c LS

Nice.

Cheers,
Quentin.
_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev

Reply via email to