Search

November 11, 2013
General »
...done via the context parameter, something like:

macro foo (Context context, Ast!(string) str)
{
    if...
November 11, 2013
General »
An example of this might be:

macro foo (Context context, Ast!(string) str)
if (lexer...
November 11, 2013
General »
...Would that be something like the attribute macro example?

http://wiki.dlang.org/DIP50#Attribute...
November 11, 2013
General »
...parsing reasons.

Also can you alias a macro?

alias fragment = tostring;

That would make things...
November 11, 2013
General »
...I can think of something like this:

macro foo (Context context, Ast!(string) str)
{
    auto...
November 11, 2013
General »
...get all scope variables of where the macro was initiated from. Being able to check...
November 11, 2013
General »
...is the "ast" macro:

http://wiki.dlang.org/DIP50#The_AST_Macro

This is similar...
November 11, 2013
General »
...at call site that a
macro is used.
How about:

macro!myAssert(1 + 2 == 4...
November 11, 2013
Learn »
...wrote:

Agreed. I did think that AST macro's may present a solution, also the...
November 08, 2013
DMD »
...c
    M src/expression.c
    M src/macro.c
    M src/module.c

  Log Message...
147 148 149 150 151 152 153 154 155 156 157
Next ›   Last »