[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cyclic

> Date: Wed, 22 Jan 1997 16:08:38 -0500
> From: Stephen Arons <arons@panix.com>
> To: inferno@interstice.com
> Subject: cyclic
> I'd like to suggest a small change to the Limbo language:  replace the
> keyword ``cyclic'' with something like `selftype'.  The semantics of
> Limbo do not allow the programmer to create cyclic data structures using
> ref, so this keyword is likely to cause some confused expectations about
> program behavior.  In any case, if this keyword is significant to the
> scheduling of the gc, a substitute that's clearer for the programmer
> will be, too.
> Steve

i don't follow.  my "Nodes" look like this...

Node: adt
	parent:   cyclic ref Node;
	sibs:     cyclic ref Node;
	children: cyclic ref Node;
	file:     cyclic ref File;
	# etc

"selftype" here would be incorrect.

Bruce Ellis