compiling into a class method

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

compiling into a class method

Maarten Mostert-2
Hi,

I use something like to compile my store version in an accessible string, 

| stream newFile |
stream := WriteStream on: String new.
stream
nextPutAll: 'stakePointBuildVersion';
cr;
cr;
tab.
stream nextPutAll: MainProject versionStringFromStoreAsCompiled.
MainProject compile: stream contents classified: ‘initialize-release'.

However now I need to compile it as a class method.

There must be someone who knows how to do that.

regards,

@+Maarten,




_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: compiling into a class method

Boris Popov, DeepCove Labs (SNN)

Object class compile: 'theanswer\\          ^42.' withCRs classified: 'important answers'.

 

-Boris

DeepCove Labs

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Maarten Mostert
Sent: Thursday, February 5, 2015 3:10 PM
To: VW NC
Subject: [vwnc] compiling into a class method

 

Hi,

 

I use something like to compile my store version in an accessible string, 

 

| stream newFile |

            stream := WriteStream on: String new.

            stream

                        nextPutAll: 'stakePointBuildVersion';

                        cr;

                        cr;

                        tab.

stream nextPutAll: MainProject versionStringFromStoreAsCompiled.

MainProject compile: stream contents classified: ‘initialize-release'.

 

However now I need to compile it as a class method.

 

There must be someone who knows how to do that.

 

regards,

 

@+Maarten,

 

 

 


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: compiling into a class method

Eliot Miranda-2
In reply to this post by Maarten Mostert-2


On Thu, Feb 5, 2015 at 3:09 PM, Maarten Mostert <[hidden email]> wrote:
Hi,

I use something like to compile my store version in an accessible string, 

| stream newFile |
stream := WriteStream on: String new.
stream
nextPutAll: 'stakePointBuildVersion';
cr;
cr;
tab.
stream nextPutAll: MainProject versionStringFromStoreAsCompiled.
MainProject compile: stream contents classified: ‘initialize-release'.

MainProject class compile: stream contents classified: ‘initialize-release'.


However now I need to compile it as a class method.

There must be someone who knows how to do that.

regards,

@+Maarten,




_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc




--
best,
Eliot

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: compiling into a class method

Maarten Mostert

Thanks, I was suspecting to miss something simple.

 

@+Maarten,



> "Eliot Miranda" <[hidden email]> |



On Thu, Feb 5, 2015 at 3:09 PM, Maarten Mostert <[hidden email]> wrote:
Hi,
I use something like to compile my store version in an accessible string, 
| stream newFile |
stream := WriteStream on: String new.
stream
nextPutAll: 'stakePointBuildVersion';
cr;
cr;
tab.
stream nextPutAll: MainProject versionStringFromStoreAsCompiled.
MainProject compile: stream contents classified: ‘initialize-release'.
MainProject class compile: stream contents classified: ‘initialize-release'.
However now I need to compile it as a class method.
There must be someone who knows how to do that.
regards,
@+Maarten,

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



--
best,
Eliot

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: compiling into a class method

Kooyman, Les
In reply to this post by Maarten Mostert-2
Maarten, 

have you tried:

MainProject class compile: stream contents classified: 'initialize-release'

?

Les



From: [hidden email] [[hidden email]] on behalf of Maarten Mostert [[hidden email]]
Sent: Thursday, February 05, 2015 3:09 PM
To: VW NC
Subject: [vwnc] compiling into a class method

Hi,

I use something like to compile my store version in an accessible string, 

| stream newFile |
stream := WriteStream on: String new.
stream
nextPutAll: 'stakePointBuildVersion';
cr;
cr;
tab.
stream nextPutAll: MainProject versionStringFromStoreAsCompiled.
MainProject compile: stream contents classified: ‘initialize-release'.

However now I need to compile it as a class method.

There must be someone who knows how to do that.

regards,

@+Maarten,




_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: compiling into a class method

Karsten Kusche
I usually use #instanceBehavior and #classBehavior to get the class or meta class, because both methods work on normal classes and on meta classes. That makes it obvious to the reader where the method ends up and it doesn’t depend on the receiver.

Karsten

-- 
Karsten Kusche - Dipl. Inf. (FH) - [hidden email]
Georg Heeg eK - Köthen
Handelsregister: Amtsgericht Dortmund A 12812 

Am 6. Februar 2015 bei 01:53:24, Kooyman, Les ([hidden email]) schrieb:

Maarten, 

have you tried:

MainProject class compile: stream contents classified: 'initialize-release'

?

Les



From: [hidden email] [[hidden email]] on behalf of Maarten Mostert [[hidden email]]
Sent: Thursday, February 05, 2015 3:09 PM
To: VW NC
Subject: [vwnc] compiling into a class method

Hi,

I use something like to compile my store version in an accessible string, 

| stream newFile |
stream := WriteStream on: String new.
stream
nextPutAll: 'stakePointBuildVersion';
cr;
cr;
tab.
stream nextPutAll: MainProject versionStringFromStoreAsCompiled.
MainProject compile: stream contents classified: ‘initialize-release'.

However now I need to compile it as a class method.

There must be someone who knows how to do that.

regards,

@+Maarten,



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc