Thread overview
Compiler default's parameters directly in source?
Aug 22, 2003
Felix
Aug 22, 2003
Sean L. Palmer
Aug 22, 2003
Mike Wynn
August 22, 2003
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
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
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
>
>