November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...done via the context parameter, something like:
macro foo (Context context, Ast!(string) str)
{
if... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
An example of this might be: macro foo (Context context, Ast!(string) str) if (lexer... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...Would that be something like the attribute macro example? http://wiki.dlang.org/DIP50#Attribute... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...parsing reasons. Also can you alias a macro? alias fragment = tostring; That would make things... | |||
November 11, 2013 General » Re: D parsing | |||
|---|---|---|---|
| |||
...I can think of something like this:
macro foo (Context context, Ast!(string) str)
{
auto... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...get all scope variables of where the macro was initiated from. Being able to check... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...is the "ast" macro: http://wiki.dlang.org/DIP50#The_AST_Macro This is similar... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...at call site that a macro is used. How about: macro!myAssert(1 + 2 == 4... | |||
November 11, 2013 Learn » Re: Get variable symbol name that was passed to a paramater? | |||
|---|---|---|---|
| |||
...wrote: Agreed. I did think that AST macro's may present a solution, also the... | |||
November 08, 2013 DMD » [dmd-internals] [D-Programming-Language/dmd] ba30e3: Add casts when converting ubyte* to char* | |||
|---|---|---|---|
| |||
...c
M src/expression.c
M src/macro.c
M src/module.c
Log Message... | |||
Copyright © 1999-2021 by the D Language Foundation