July 11, 2014 General » Re: How can I dump an expression into log and execute it | |||
|---|---|---|---|
| |||
...is very simple in my opinion. AST macro system overlaps with string mixins in functionality... | |||
July 11, 2014 General » Re: How can I dump an expression into log and execute it | |||
|---|---|---|---|
| |||
...this:
macro logfx(exp)
debug_log({{exp.stringify}})
fx({{exp}})
end
To this:
macro logfx... | |||
July 11, 2014 General » Re: How can I dump an expression into log and execute it | |||
|---|---|---|---|
| |||
...a macro system? I mean, a macro system is quite functional in nature - the macro... | |||
July 11, 2014 General » Re: Cool Stuff for D that we keep Secret | |||
|---|---|---|---|
| |||
...HTML output currently. :-( While ddoc as a macro system is quite nice, for documentation generation... | |||
July 11, 2014 General » Re: How can I dump an expression into log and execute it | |||
|---|---|---|---|
| |||
Full macro system is not needed to implement it, just AST reflection can do the... | |||
July 11, 2014 General » Re: How can I dump an expression into log and execute it | |||
|---|---|---|---|
| |||
...fx(exp)
puts "Exp is: #{exp}"
end
macro logfx(exp)
debug_log({{exp.stringify}})
fx... | |||
July 11, 2014 General » How can I dump an expression into log and execute it | |||
|---|---|---|---|
| |||
Hi, I have a C macro, which takes an argument, log it and call a... | |||
July 10, 2014 General » Re: Cool Stuff for D that we keep Secret | |||
|---|---|---|---|
| |||
...really just too "dumb": Purely zero-semantics macro-like text substitution just isn't good... | |||
July 10, 2014 General » Re: critique of vibe.d | |||
|---|---|---|---|
| |||
...t worth it. I'll stick to my simple nesting expansion and text macro replacement. | |||
July 10, 2014 General » Re: Opportunities for D | |||
|---|---|---|---|
| |||
...been implemented in Rust[1] via a macro, and can be implemented in Haskell[2... | |||
Copyright © 1999-2021 by the D Language Foundation