On 21 December 2013 11:29, Johannes Pfau <nos...@example.com> wrote:
> Am Sat, 21 Dec 2013 11:34:29 +0100
> schrieb "Mike" <n...@none.com>:
>
>>
>> > Should the module name then default to the file name?
>> > Is there a way to query and print the full module name at
>> > compile time?
>>
>> Good questions, I'd like to know these myself. Iain? Johannes?
>
> It usually should default to the file name. I don't know why it doesn't
> work for the object.d file, maybe a bug or maybe intentional. You
> could file a bug against dmd or ask this question in the main
> newsgroup.
>


Answer is quite simply, the module name is only inferred after
parsing, until then, the parser does not know this is the object
module unless explicitly defined. Hence the errors.

Reply via email to