Re: [Pharo-users] programmatic use of the language compiler

2017-03-15 Thread denker
> On 14 Mar 2017, at 11:23, Raffaello Giulietti > wrote: > > Hi, > > I'm wondering how to programmatically compile a method. I tried using a > variant of >ClassDescription>>compile:*:notifying: Yes, this is the Smalltalk API. You can use the compiler directly and then install the method

Re: [Pharo-users] programmatic use of the language compiler

2017-03-15 Thread p...@highoctane.be
You can set the NonInteractiveTranscript to be used when compiling and then set it back to the ThreadSafeTranscript when done. Will not play nice with other concurrent users of Transcript so make this in an atomic operation... Will allow you to catch the errors there. There was a thread about ha

Re: [Pharo-users] programmatic use of the language compiler

2017-03-14 Thread stepharong
Marcus will certainly reply. We are going towards a fluid interface for compiler because all the messages with multiple arguments do not work well for composition. Hi, I'm wondering how to programmatically compile a method. I tried using a variant of ClassDescription>>compile:*:notif

[Pharo-users] programmatic use of the language compiler

2017-03-14 Thread Raffaello Giulietti
Hi, I'm wondering how to programmatically compile a method. I tried using a variant of ClassDescription>>compile:*:notifying: However, on a method with undeclared variables, when the Transcript is open there seems to be no way to avoid a message being written there. Further, the requestor