[chuck-users] cross-referenced classes?

Robert Poor rdpoor at gmail.com
Fri Mar 13 01:15:47 EDT 2009


The best solution I've come up with is to put Scratch and Sniff in the  
same file.  It works, but the ghosts of abstraction are whispering  
profanities in my ear.

On 12 Mar 2009, at 20:37, Tom Lieber wrote:

> 2009/3/12 Robert Poor <rdpoor at gmail.com>:
>> Assume I have the following:
>>
>> ===== file: scratch.ck =====
>> public class Scratch {
>>        Sniff _sniff;
>> }
>> ===== EOF =====
>>
>> ===== file: sniff.ck =====
>> public class Sniff {
>>        Scratch @ _scratch;
>> }
>> ===== EOF =====
>>
>> How does one compile cross-referenced classes?  Neither "chuck  
>> scratch.ck
>> sniff.ck" nor "chuck sniff.ck scratch.ck" bring joy.  (There's a  
>> similar
>> question for any class that has a reference to itself as a member,  
>> such as a
>> linked list.
>
> Why do you keep trying to do this to poor ChucK??
>
> -- 
> Tom Lieber
> http://AllTom.com/
> _______________________________________________
> 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