Name lookups in D
Dibyendu Majumdar
d.majumdar at gmail.com
Mon Nov 16 16:06:04 UTC 2020
On Monday, 16 November 2020 at 13:07:21 UTC, Steven Schveighoffer
wrote:
> On 11/15/20 5:38 PM, Paul Backus wrote:
>> On Sunday, 15 November 2020 at 22:20:12 UTC, Dibyendu Majumdar
>> wrote:
>>> This fails:
>>>
>>> module a.b.m;
>>>
>>> int hello() {
>>> return 42;
>>> }
>>>
>>> extern (C) void main() {
>>> assert (a.b.m.hello() == 42);
>>> }
>>>
>>> Is it supposed to?
>>
>
> This seems like a weird limitation based on the fact that the
> package isn't defined.
>
> IMO, you should be able to access the package you are defined
> in.
>
It didn't make sense to me - thank you for confirming.
Regards
More information about the Digitalmars-d
mailing list