[Issue 13512] dmd cannot compile perfectly valid code with shebang

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 23 04:23:30 PDT 2014


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

--- Comment #15 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> ---
(In reply to Andrei Alexandrescu from comment #11)
> Not sure what best to do about this. I'd say if #! is detected, the first
> line should be just scanned through the first \n and ignored. In a way the
> semantics of the shebang line is determined by the environment. Regular
> scanning shouldn't be affected.

There were two other requests for full support for legacy encodings. If such
support is introduced, it should probably extend to the entire source code. It
may be not in a language standard, just a compiler vendor-specific extension.
Maybe a compilation option in dmd build script.

--


More information about the Digitalmars-d-bugs mailing list