Thread overview | |||||
---|---|---|---|---|---|
|
August 22, 2003 Compiler default's parameters directly in source? | ||||
---|---|---|---|---|
| ||||
Hi, Maybe it will be useful to allow some kind of compiler parameters to be passed directly in the .d source files. I never met this but some informations as libraries etc. could be written in some kinds of ##lines? What about? Bye |
August 22, 2003 Re: Compiler default's parameters directly in source? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Felix | I think I'd rather them be there than in some separate makefile or project file, but it does impose some constraints on the language implementor. They have to be able to parse and handle directives they don't understand. Sean "Felix" <Felix_member@pathlink.com> wrote in message news:bi48vt$2hp9$1@digitaldaemon.com... > Hi, > > Maybe it will be useful to allow some kind of compiler parameters to be passed > directly in the .d source files. I never met this but some informations as libraries etc. could be written in some kinds of ##lines? What about? > > Bye |
August 22, 2003 Re: Compiler default's parameters directly in source? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean L. Palmer | D already supports #line <line_num> <file_name> see the very bottom of http://www.digitalmars.com/d/lex.html as D is intended to have support as a backend lang I think this should be extended to allow several line/filename pairs I have worked with systems that preprocess C before cpp get there to do it again, there are times when debugging that you want to keep the macro expended version as well as the original to see what things expanded to. "Sean L. Palmer" <palmer.sean@verizon.net> wrote in message news:bi4isj$31k6$1@digitaldaemon.com... > I think I'd rather them be there than in some separate makefile or project file, but it does impose some constraints on the language implementor. They > have to be able to parse and handle directives they don't understand. > > Sean > > "Felix" <Felix_member@pathlink.com> wrote in message news:bi48vt$2hp9$1@digitaldaemon.com... > > Hi, > > > > Maybe it will be useful to allow some kind of compiler parameters to be > passed > > directly in the .d source files. I never met this but some informations as > > libraries etc. could be written in some kinds of ##lines? What about? > > > > Bye > > |
Copyright © 1999-2021 by the D Language Foundation