POV-Ray : Newsgroups : povray.off-topic : My first C++ program : Re: My first C++ program Server Time
1 Oct 2024 05:18:08 EDT (-0400)
  Re: My first C++ program  
From: Orchid XP v8
Date: 20 Sep 2008 11:56:12
Message: <48d51d1c$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.