Struct "inheritance"

Daniel Murphy yebblies at nospamgmail.com
Sun Feb 5 06:19:19 PST 2012


"Vidar Wahlberg" <canidae at exent.net> wrote in message 
news:jgm2qk$c2g$1 at digitalmars.com...
> Adding a note about GDC (4.6.2) here:
> It appears like it ignores "module <name>;" and always use the filename 
> for module name (or I've misunderstood what "module" is used for). If I 
> create a file "Foo.d" which contains "module foo;", then in any other file 
> I wish to include module "foo" in I must write "include Foo;", not 
> "include foo;".

The names only need to match if the compiler/build tool has to find the 
module itself.  If you call the compiler with all modules listed:
gdc bar.d Foo.d etc.d
then it should be able to work it out.  (This is how it works with dmd, 
anyway.  GDC is probably the same) 




More information about the Digitalmars-d-learn mailing list