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
: 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@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users