On 20.12.2009 20:44, Bart Gauquie wrote:
> Dear all,
>
> I'm developing code which generates a method content, compiles it and 
> adds it to an existing class.
> I compile the message using #compile: message:
> for instance:
>
> MorphicReplayDemoTest compile: '
> testMethod
> self addMMEFrom: 1...@512 to: 1...@504.
> self addMMEFrom: 6...@559 to: 6...@579.
> '.
>
> This works fine. However if the contents of the method is too long; 
> for instance:
> if the self addMMEFrom: 1...@512 to: 1...@504. is repeated around 250 
> times; I get following error (see stack below)
>
> The strange thing is that if I manually add that method using the 
> editor and paste it, it works just fine. I even tested up to 5000 
> lines of code; its slow, but its working.
>
> Any ideas how to solve this?
>
> Thanks,
>
> Bart
>
> I'm using Pharo 1.0 rc update: 10502; using Ubuntu 9.10, using vm 
> pharo-vm-0.15.2f-linux.
>
Sorry I can't answer your question directly, but if you're trying to do 
what I think you are, why not keep an OrderedCollection of MessageSend 
instances instead?

Cheers,
Henry

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to