Module names shadowing defined functions/templates.

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 28 23:36:29 PDT 2016


On 2016-09-29 04:26, Joakim wrote:

> I ran into this too, it is annoying. I think you're supposed to use
> different names.

Yeah, especially since I have a lot of module looking like this:

module main;

void main()
{
     // some stuff
}

This works since "main" is a special function which is never explicitly 
called.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list