[Newcompiler] Does the new compiler work for Tweak?

Ken G. Brown kbrown at mac.com
Wed Dec 3 18:20:08 UTC 2008


On the croquet-dev list, John Dougan mentions that "Tweak uses a modified compiler".
Does the new compiler work for Tweak?

Ken G. Brown

At 6:00 AM -0500 12/3/08, croquet-dev-request at duke.edu apparently wrote:
>Date: Wed, 3 Dec 2008 01:41:29 -0800
>From: "John Dougan" <jdougan at acm.org>
>Subject: Re: [croquet-dev] Hard to find instance variables in Croquet.
>
>They're almost certainly not instance vars, but "fields".   Fields are
>something like instance vars but they are represented in the myProperties
>dict in the CObject. If a field is not used it won't take up storage in the
>dict.  Tweak uses a modified compiler that translates variable reference
>syntax into accessor message sends and creates accessors automatically so
>that the vars are never actually accessed directly.
>So in Tweak: (assuming that foo is not a method temporary var)
>    foo := self bar: 4 + 5.
>    self foo: (self bar: 4 + 5).
>do pretty much the same thing in the bytecode. This is useful as it means
>that it's hard to accidentally bypass the event mechanisms in Tweak.
>
>If you browse a subclass of CObject and right click on one of the instance
>vars you'll see a pop up giving you the options for the var.  The
>color/emphasis of the var name tells you what kind of var it is.
>
>Some description of the fields is at
>http://tweakproject.org/TECHNOLOGY/Tutorials/BankAccountTutorial/ and at
>http://tweakproject.org/tweak/tutorials/Tweak-Introduction.pdf
>
>Cheers,
>  -- John
>
>On Tue, Dec 2, 2008 at 23:46, askoh <askoh at askoh.com> wrote:
>
>>
>> There seem to be many instance variables in the class CPlayer that are not
>> showing up in the debugger and 'show hierarchy'. Why? Is this a known bug
>> or
>> something special?
>>
>> Aik-Siong Koh
>> --
>> View this message in context:
>>
>http://www.nabble.com/Hard-to-find-instance-variables-in-Croquet.-tp20808243p20
>808243.html
>> Sent from the Croquet - Dev mailing list archive at Nabble.com.
> >
> >
>
>
>--
>John Dougan
>jdougan at acm.org


More information about the Newcompiler mailing list