On Wed, Jan 11, 2012 at 06:23:46PM +0100, Michele Pes wrote:

>TUPLE: foo { s1 initial: 0 } { s2 initial: 1 } ;
>foo new
>
>the listener shows:
>T{ foo f 0 1 }
>
>where T{ is for tuple, foo is the tuple name and 0 and 1 are the slot
>values I think.
>
>What I cannot understand is the f after the tuple name and before the
>slot values that I see in all (???) tuples .

If you look at the docs for T{, you'll see there are three forms it
can take:

     T{ class }
     T{ class f slot-values... }
     T{ class { slot-name slot-value } ... }

The f indicates that the initializer is in BOA form.  If that argument
is a sequence, it indicates that the initializer is in assoc form,
where the field names are given.

David

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to