K Stol wrote:

Hello,
Just 1 more question, for me to get it right.
When I have 2 modules, for example like this:

---main.imc-----------
.sub _main
bsr _hellosub
end
.end
.include hello.imc
----------------------
---hello.imc----------
.sub _hellosub
/* print "hello" or whatever */
ret
.end
-----------------------

The ".include" makes sure that IMCC can resolve the labels and stuff?
Does it work like this: when IMCC sees ".include", it goes looking for
the given file, and just inserts the contents of it into the file that was
being compiled,
in this case, "main.imc". (I mean not really *insert* into the file, but in
IMCC symbol table
or something like that.)


I'm really curious as to this myself. I didn't even know an "include" existed; its not in the imcc docs. I only bring this up because around a month ago, I started working on use/include/inline semantics for languages/perl6. Then I got mono and I stopped. However, I'm better now and I'd really like to know of how much I have is redundant, and if .include can help resolve some of the symbol name conflicts that I was having.

So, does anyone know? (-:


Joseph F. Ryan [EMAIL PROTECTED]



Reply via email to