Jens Lincke
2006-09-06 14:35:15 UTC
Hi,
I've run into a Problem with changing the compiler of a class in a Tweak
System. (JavaScriptCompiler from Marcus Denkers Babel)
Tweak overiders
Metaclass>>compilerClass
^thisClass compilerClass
but this has the effect, that you can't define a new compiler class on
the class side, because the system uses the new compiler for the class
and the instance sides.
Bert Freudenberg help me with creating a fix, which I uploaded to
source.impara.de/Stuff
Name: Tweak-Compiler-jl.27
Author: jl
Time: 6 September 2006, 4:24:51 pm
UUID: 593772b3-7351-4096-847f-72eee73dfc80
Ancestors: Tweak-Compiler-bf.26
(jl,bf)
- added metaCompilerClass, metaEvaluatorClass and metaParserClass in Class
- changed compilerClass, evaluatorClass and parserClass in Metaclass to
use these
- this allows to separately override compiler for class and class class
- overridden in CProtoObject metaClassCompiler (Tweak-Core-Proto-jl.48)
Name: Tweak-Core-Proto-jl.48
Author: jl
Time: 6 September 2006, 4:02:21 pm
UUID: 7c695592-ee89-42ab-abae-61e8f34a556e
Ancestors: Tweak-Core-Proto-bf.47
(jl,bf)
- override CProtoObject>>metaCompilerClass to answer compilerClass
- Jens Lincke -
I've run into a Problem with changing the compiler of a class in a Tweak
System. (JavaScriptCompiler from Marcus Denkers Babel)
Tweak overiders
Metaclass>>compilerClass
^thisClass compilerClass
but this has the effect, that you can't define a new compiler class on
the class side, because the system uses the new compiler for the class
and the instance sides.
Bert Freudenberg help me with creating a fix, which I uploaded to
source.impara.de/Stuff
Name: Tweak-Compiler-jl.27
Author: jl
Time: 6 September 2006, 4:24:51 pm
UUID: 593772b3-7351-4096-847f-72eee73dfc80
Ancestors: Tweak-Compiler-bf.26
(jl,bf)
- added metaCompilerClass, metaEvaluatorClass and metaParserClass in Class
- changed compilerClass, evaluatorClass and parserClass in Metaclass to
use these
- this allows to separately override compiler for class and class class
- overridden in CProtoObject metaClassCompiler (Tweak-Core-Proto-jl.48)
Name: Tweak-Core-Proto-jl.48
Author: jl
Time: 6 September 2006, 4:02:21 pm
UUID: 7c695592-ee89-42ab-abae-61e8f34a556e
Ancestors: Tweak-Core-Proto-bf.47
(jl,bf)
- override CProtoObject>>metaCompilerClass to answer compilerClass
- Jens Lincke -