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 |
Object class compile: 'theanswer\\ ^42.' withCRs classified: 'important answers'. -Boris DeepCove Labs From: [hidden email] [mailto:[hidden email]]
On Behalf Of Maarten Mostert 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 |
In reply to this post by Maarten Mostert-2
On Thu, Feb 5, 2015 at 3:09 PM, Maarten Mostert <[hidden email]> wrote:
MainProject class compile: stream contents classified: ‘initialize-release'.
best,
Eliot _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Thanks, I was suspecting to miss something simple.
@+Maarten,
On Thu, Feb 5, 2015 at 3:09 PM, Maarten Mostert <[hidden email]> wrote:
MainProject class compile: stream contents classified: ‘initialize-release'.
-- best,
Eliot
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
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 |
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:
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |