D modules/sourcecode organisation/filesystem mapping

Derek Parnell derek at psych.ward
Wed May 10 16:59:43 PDT 2006


On Sat, 13 May 2006 09:53:10 +1000, Sean Kelly <sean at f4.ca> wrote:

> Chad J wrote:
>> Bruno Medeiros wrote:

...
>>>
>>> What happens when both "module foo;"'s have module  
>>> constructors/destructors ?

>>  Why not just execute both?  Almost makes me wonder, why not have  
>> multiple module ctors/dtors in the same file?
...

> No reason not to.  Multiple unittests are already allowed.

There are already precedents for this type of coding. Not only the  
'unittest' idea but 'scope()' also allows us to physically separate code  
that is executed linearly. So the concept is not foreign to D or Walter.

-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d mailing list