freeNamesAndValues

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

freeNamesAndValues

Stéphane Ducasse


freeNamesAndValues
        | aStream eval |
        eval :=
        [ :string |
        self class evaluatorClass new
                evaluate2: string readStream
                in: self
                to: nil
                notifying: nil
                ifFail:
                        [ "fix this"
                        self error: 'bug' ]
                logged: false ].
        aStream := '' writeStream.
        self freeNames doWithIndex:
                [ :name :index |
                aStream
                        nextPutAll: name;
                        nextPut: $:;
                        space;
                        tab.
                (eval value: name) printOn: aStream.
                aStream cr ].
        ^ aStream contents

apparently

freeNames

        ^ self methodNode freeNames

freeNames is not defined on compiledMethod

Elliot do you have that in your image?

Stef

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: freeNamesAndValues

Eliot Miranda-2


On Wed, Mar 10, 2010 at 1:12 PM, Stéphane Ducasse <[hidden email]> wrote:


freeNamesAndValues
       | aStream eval |
       eval :=
       [ :string |
       self class evaluatorClass new
               evaluate2: string readStream
               in: self
               to: nil
               notifying: nil
               ifFail:
                       [ "fix this"
                       self error: 'bug' ]
               logged: false ].
       aStream := '' writeStream.
       self freeNames doWithIndex:
               [ :name :index |
               aStream
                       nextPutAll: name;
                       nextPut: $:;
                       space;
                       tab.
               (eval value: name) printOn: aStream.
               aStream cr ].
       ^ aStream contents

apparently

freeNames

       ^ self methodNode freeNames

freeNames is not defined on compiledMethod

Elliot do you have that in your image?

Nope.  Never heard of it.
 

Stef

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


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: freeNamesAndValues

Stéphane Ducasse
ok it was removed by pavel so this is a good move.

Stef

On Mar 10, 2010, at 10:19 PM, Eliot Miranda wrote:

>
>
> On Wed, Mar 10, 2010 at 1:12 PM, Stéphane Ducasse <[hidden email]> wrote:
>
>
> freeNamesAndValues
>        | aStream eval |
>        eval :=
>        [ :string |
>        self class evaluatorClass new
>                evaluate2: string readStream
>                in: self
>                to: nil
>                notifying: nil
>                ifFail:
>                        [ "fix this"
>                        self error: 'bug' ]
>                logged: false ].
>        aStream := '' writeStream.
>        self freeNames doWithIndex:
>                [ :name :index |
>                aStream
>                        nextPutAll: name;
>                        nextPut: $:;
>                        space;
>                        tab.
>                (eval value: name) printOn: aStream.
>                aStream cr ].
>        ^ aStream contents
>
> apparently
>
> freeNames
>
>        ^ self methodNode freeNames
>
> freeNames is not defined on compiledMethod
>
> Elliot do you have that in your image?
>
> Nope.  Never heard of it.
>  
>
> Stef
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: freeNamesAndValues

Marcus Denker-4

On Mar 10, 2010, at 11:01 PM, Stéphane Ducasse wrote:

> ok it was removed by pavel so this is a good move

This is a leftover  NewCompiler hacks/code... I already cleaned up most, should do another pass.

        Marcus


--
Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.


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