[Issue 20172] using functions with full path and without preliminary import

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 30 09:13:29 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20172

--- Comment #2 from KnightMare <black80 at bk.ru> ---

(In reply to Simen Kjaeraas from comment #1)
> Is foo.bar.baz referring to the free function baz in the module foo.bar, or
> the member baz in the type bar in the module foo? In addition to this
> ambiguity, this effectively turns every typo into an expensive file system
> lookup.

in any case u(D gods) can extend syntax
core.stdc.stdlib:free( pelem )
foo.bar:baz
colon":" that split module path from type.method path
meaning left be same as now but shorter in 1LOC

--


More information about the Digitalmars-d-bugs mailing list