[Issue 14681] Add a way to specify a file import's contents on the command line

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 12 02:50:45 PDT 2015


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

--- Comment #3 from yebblies <yebblies at gmail.com> ---
(In reply to Kenji Hara from comment #2)
> > The ':' prefix allows the compiler to tell apart import paths and key/value pairs.
> 
> I think it's not good. Indeed in most platform `:` cannot be in file name,
> but it actually depends on the external file system.
> 
> Is there more better syntax for the "named import string"?

I thought ':' would be fairly safe as linux uses it for the path separator, and
windows uses it as the drive letter separator.  Is there really any risk of
someone wanting to allow importing files from a directory whose name starts
with ':'?

--


More information about the Digitalmars-d-bugs mailing list