ARM Cortex-M - Static array dyamically allocated

Iain Buclaw ibuclaw at gdcproject.org
Sat Dec 21 04:21:09 PST 2013


On 21 December 2013 11:29, Johannes Pfau <nospam at example.com> wrote:
> Am Sat, 21 Dec 2013 11:34:29 +0100
> schrieb "Mike" <none at 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.


More information about the D.gnu mailing list