Re: Solution for including a file only once

2010-02-10 Thread Tim McNamara
On Feb 10, 2010, at 10:15 PM, Michael J. O'Donnell wrote: My proposed solution behaves as though you had written { \include "MyFile.ly" } rather than the desired \include "MyFile.ly" Lots of simple debugging code works fine, but in the usual case where MyFile.ly is full of variabl

Re: Solution for including a file only once

2010-02-10 Thread Michael J. O'Donnell
My proposed solution behaves as though you had written { \include "MyFile.ly" } rather than the desired \include "MyFile.ly" Lots of simple debugging code works fine, but in the usual case where MyFile.ly is full of variable definitions, those definitions are not parsed in the outermo

Solution for including a file only once

2010-02-06 Thread Michael J. O'Donnell
I *think* that I have the essential solution to include a file exactly once, no matter how many times it is mentioned. That is, with the following definition, \includeIfAbsent "MyFile.ly" should copy in MyFile.ly, just as though you had written \include "MyFile.ly" unless an inclusion (