www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics



digitalmars.D - Macro system in D

↑ ↓ ← Yigal Chripun <yigal100 gmail.com> writes:
Here's an interesting article (PDF) discussing the Nemerle Macro system:
http://nemerle.org/metaprogramming.pdf

Could D adopt a similar design? What do you think?

--Yigal
May 07 2008
Dan <murpsoft hotmail.com> writes:
Yigal Chripun Wrote:

 Here's an interesting article (PDF) discussing the Nemerle Macro system:
 http://nemerle.org/metaprogramming.pdf
 
 Could D adopt a similar design? What do you think?
 
 --Yigal

D is not Nemerle. D does not use macros. D does not have syntax tree reflection, let alone built into the language. D most probably will not adopt a similar design.
May 07 2008
↑ ↓ → Yigal Chripun <yigal100 gmail.com> writes:
Dan wrote:
 Yigal Chripun Wrote:
 
 Here's an interesting article (PDF) discussing the Nemerle Macro system:
 http://nemerle.org/metaprogramming.pdf

 Could D adopt a similar design? What do you think?

 --Yigal

D is not Nemerle. D does not use macros. D does not have syntax tree reflection, let alone built into the language. D most probably will not adopt a similar design.

in the last D conference Walter did mention AST Macros. It probably just got postponed because of the const design. I hope D does get such a feature since it's a very powerful concept.
May 07 2008
Robert Fraser <fraserofthenight gmail.com> writes:
Yigal Chripun wrote:
 Here's an interesting article (PDF) discussing the Nemerle Macro system:
 http://nemerle.org/metaprogramming.pdf
 
 Could D adopt a similar design? What do you think?
 
 --Yigal

D was getting macros (though not exactly the same as Nemerle's). In fact, there's even a macro.c in the DMD source. But I'm not sure if they've been dropped by the wayside; Walter hasn't mentioned them since the conference last year.
May 07 2008
↑ ↓ Bill Baxter <dnewsgroup billbaxter.com> writes:
Robert Fraser wrote:
 Yigal Chripun wrote:
 Here's an interesting article (PDF) discussing the Nemerle Macro system:
 http://nemerle.org/metaprogramming.pdf

 Could D adopt a similar design? What do you think?

 --Yigal

D was getting macros (though not exactly the same as Nemerle's). In fact, there's even a macro.c in the DMD source. But I'm not sure if they've been dropped by the wayside; Walter hasn't mentioned them since the conference last year.

macro.c in the DMD sources is about DDOC macros. --bb
May 07 2008
↑ ↓ → Robert Fraser <fraserofthenight gmail.com> writes:
Bill Baxter wrote:
 Robert Fraser wrote:
 Yigal Chripun wrote:
 Here's an interesting article (PDF) discussing the Nemerle Macro system:
 http://nemerle.org/metaprogramming.pdf

 Could D adopt a similar design? What do you think?

 --Yigal

D was getting macros (though not exactly the same as Nemerle's). In fact, there's even a macro.c in the DMD source. But I'm not sure if they've been dropped by the wayside; Walter hasn't mentioned them since the conference last year.

macro.c in the DMD sources is about DDOC macros. --bb

Oops, my bad
May 07 2008