[chuck-users] forward reference oddity

Robert Poor rdpoor at gmail.com
Fri Oct 2 20:21:27 EDT 2009


Kas:

Actually, an ouro contains a *reference* to a boros and vice versa.  
There nothing bestial about that -- in fact it's a useful and often  
appropriate construct.

You're just trying to goad me into writing that wiki entry on ChucK  
references, aren't you?  :)

-Rob

Sent from my iPhone

On Oct 2, 2009, at 4:06 PM, Kassen <signal.automatique at gmail.com> wrote:

> Robert;
>
> Is this because Boros is a forward reference?  And is this not a bug?
>
>
> Actually I'm quite surprised you got the second version to compile  
> at all. You are defining a chicken as something that comes out of a  
> egg, while a egg is something that comes out of a chicken.
>
> On behalf of your cpu and ram I suggest you stop doing this; if  
> every Ouro contains a Boros (which in turn contains a Ouro (which in  
> turn contains a Boros (which in turn contains a Ouro (which in turn  
> contains a Boros (which in turn contains a Ouro (which in turn  
> contains a Boros (which in turn contains a Ouro (which in turn  
> contains a Boros(which in turn contains a Ouro (which in turn  
> contains a Boros (which in turn contains a Ouro (which in turn  
> contains a Boros ( and so on )))))))))))) then there will be trouble.
>
> Yours,
> Kas.
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users


More information about the chuck-users mailing list