November 12, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...scala implemented macros as a plugin called macro paradise, which allowed people to play with... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...marked, a naming convention (eg. prefix macro names with 'macro') can be used. (Enforcing such... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...compiler consider it an error. On the macro side of things we can build a... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...error messages - or maybe recover from deep macro expansion etc...) what you want is just... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...destructor. I would think something like this: macro foreach (T) (Context context, Ast!(Symbol) var... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...void func(int i) {
bool b;
macr {}
}
macro foo (Context context, Ast!(string) str)
{
writeln... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
I made a suggestion regarding a macro able to get scoped variables from initiation point... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...expression what was passed to the assert macro. Not the result of evaluating the expression... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...asserts {
x < y
z == z
}
Where the macro would do something like this once converted... | |||
November 11, 2013 General » Re: DIP 50 - AST macros | |||
|---|---|---|---|
| |||
...message, along with all values appearing inside macro myAssert: x<y failed: x=..., y=... myAssert... | |||
Copyright © 1999-2021 by the D Language Foundation