On Sat, 2002-06-22 at 20:12, Jeff wrote: > brian wheeler wrote: > > > > Its not backwards, it does the right thing. > > Okay, I believe you now :) I was thinking that the insert was done at > the beginning of the -file-, not the insertion point of the file. If you > haven't committed, feel free to do so. I shouldn't have stuck my nose in > :) >
no problem! I have a tendency to not actually test my code thoroughly! Brian > > The "at the beginning" part > > is correct since the source is treated like a queue, and the first item > > is shifted off. When an .include is found, the file is inserted at the > > beginning of the queue, since all of the code prior to the .include have > > been removed (shifted) off. > > > > So this (also contrived) example works as expected: > > > > test.pasm > > -------------------------------------- > > print "yo!\n" > > .include "foo.pasm" > > .include "foo2.pasm" > > print "you are here\n" > > end > > -------------------------------------- > > > > foo.pasm > > -------------------------------------- > > print "hello " > > -------------------------------------- > > > > foo2.pasm > > -------------------------------------- > > print "world\n" > > -------------------------------------- > > > > Does that make more sense? > > > > Brian > > > > > -- > > > Jeff <[EMAIL PROTECTED]>