<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello Curtis,<div class=""><br class=""></div><div class="">In LiCK there is one big import.ck file (your second method)</div><div class=""><br class=""></div><div class=""><a href="https://github.com/heuermh/lick/blob/master/import.ck" class="">https://github.com/heuermh/lick/blob/master/import.ck</a></div><div class=""><br class=""></div><div class="">I typically use it with two terminal windows, in one</div><div class=""><br class=""></div><div class="">$ chuck --loop</div><div class=""><br class=""></div><div class="">and in the other</div><div class=""><br class=""></div><div class="">$ chuck + import.ck</div><div class="">$ chuck + other-stuff.ck</div><div class=""><br class=""></div><div class="">See also</div><div class=""><br class=""></div><div class="">Add namespaces and import statements</div><div class=""><a href="https://github.com/ccrma/chuck/issues/109" class="">https://github.com/ccrma/chuck/issues/109</a></div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp;michael</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 8, 2020, at 12:56 PM, Curtis Ullerich &lt;<a href="mailto:curtullerich@gmail.com" class="">curtullerich@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">What's the state of the art for imports/includes?<div class=""><br class=""></div><div class="">If I have files <a href="http://lib0.ck/" class="">lib0.ck</a>&nbsp;and&nbsp;<a href="http://lib1.ck/" class="">lib1.ck</a>&nbsp;that declare public classes both used in&nbsp;<a href="http://control.ck/" class="">control.ck</a>, I understand these to be the two options for running them:</div><div class=""><br class=""></div><div class=""><font face="monospace" class="">chuck <a href="http://lib0.ck/" class="">lib0.ck</a> <a href="http://lib1.ck/" class="">lib1.ck</a> <a href="http://control.ck/" class="">control.ck</a></font></div><div class=""><br class=""></div><div class="">or, make another file <a href="http://control-main.ck/" class="">control-main.ck</a>:</div><div class=""><font face="monospace" class="">Machine.add("<a href="http://lib0.ck/" class="">lib0.ck</a>");</font></div><div class=""><font face="monospace" class="">Machine.add("<a href="http://lib1.ck/" class="">lib1.ck</a>");</font></div><div class=""><font face="monospace" class="">Machine.add("<a href="http://control.ck/" class="">control.ck</a>");</font></div><div class=""><br class=""></div><div class="">and run it as:</div><div class=""><font face="monospace" class="">chuck <a href="http://control-main.ck/" class="">control-main.ck</a></font></div><div class=""><br class=""></div><div class="">I thought it would work to use <font face="monospace" class="">Machine.add("<a href="http://lib0.ck/" class="">lib0.ck</a>"); Machine.add("<a href="http://lib1.ck/" class="">lib1.ck</a>");</font> as the first line of <a href="http://control.ck/" class="">control.ck</a> and then just run <font face="monospace" class="">chuck <a href="http://control.ck/" class="">control.ck</a>,</font> but the included classes are not found.&nbsp;</div><div class=""><br class=""></div><div class="">Are these the two options, or is there another way that can support transitive inclusion (not having to list each util file for every program that uses them)?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Curtis</div></div>
_______________________________________________<br class="">chuck-users mailing list<br class=""><a href="mailto:chuck-users@lists.cs.princeton.edu" class="">chuck-users@lists.cs.princeton.edu</a><br class="">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users<br class=""></div></blockquote></div><br class=""></div></body></html>