Module names shadowing defined functions/templates.
bachmeier via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 29 03:07:41 PDT 2016
On Thursday, 29 September 2016 at 04:17:56 UTC, Minty Fresh wrote:
> On Thursday, 29 September 2016 at 02:26:15 UTC, Joakim wrote:
>> I ran into this too, it is annoying. I think you're supposed
>> to use different names.
>
> It's a rather painful limitation if that were the case.
> Going with the example I gave, what would an alternative name
> for the module be? All it's public members are named `leastsq`.
>
> While I can imagine there are technical challenges that have
> caused this issue to be the way it is, it's still a pretty
> major flaw to try to work around.
>
> Working around shortcomings of a language is never a good place
> to be in.
It's slightly annoying, yes, but is it a big deal? Can't you just
name the module lsq rather than leastsq? Apparently this is a
tradeoff of inconvenience for simplicity.
More information about the Digitalmars-d
mailing list