|
|
Darren New wrote:
> That's basically what happens internally. I don't think it's like Java,
> where putting multiple sources on the same line does things that
> compiling them separately can't. (For example, putting multiple sources
> on the same line is the only way to get Java to compile circular
> dependencies between classes, last I looked.)
When I looked, Sun's javac chokes on circular depends, but M$
VisualStudio J++ doesn't blink an eyelid. It just compiles.
This was a *long* time ago tho... Maybe Sun have fixed their compiler now?
(Before I get too smug, I gather GHC also doesn't like circular depends
either. But then, in Haskell, module bounderies are arbitrary and the
programmer can choose them. In Java, a class goes in a file, and you
can't just move stuff from class to class at will. Not if you want your
design to make sense anyway!)
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
|