| Thread overview | |||||||||
|---|---|---|---|---|---|---|---|---|---|
|
March 07, 2007 User defined statements for D like seed have? | ||||
|---|---|---|---|---|
| ||||
example how a for statement is declared http://seed7.sourceforge.net/examples/declstat.htm ok i know that seed is an interpreter language but maybe there is a way walter can allow something like this for his buildin statements or even better the case statement http://seed7.sourceforge.net/manual/stats.htm#case-statement as a statement-template wich can produce (with the help of the awaited static foreach) a nice objectfactory from a tuple or something like this ciao denni | ||||
March 08, 2007 Re: User defined statements for D like seed have? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to dennis luehring | "dennis luehring" <dl.soluz@gmx.net> wrote in message news:esncoo$pid$1@digitalmars.com... > example how a for statement is declared http://seed7.sourceforge.net/examples/declstat.htm > > ok i know that seed is an interpreter language but maybe there is a way walter can allow something like this for his buildin statements > > or even better the case statement > > http://seed7.sourceforge.net/manual/stats.htm#case-statement > > as a statement-template wich can produce (with the help of the awaited static foreach) a nice objectfactory from a tuple or something like this > > ciao denni Stuff like this has been requested several times, but the same problem prevents these suggestions from being implemented: they break the separation of syntactic and semantic analysis. This increases the complexity of the compiler greatly. Now, some level of "custom code" may become available if/when D gets Lisp-style macros, which will (hopefully) allow for custom generation and reorganization of code by other code. | |||
March 08, 2007 Re: User defined statements for D like seed have? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | Jarrett Billingsley wrote:
> "dennis luehring" <dl.soluz@gmx.net> wrote in message news:esncoo$pid$1@digitalmars.com...
>> example how a for statement is declared
>> http://seed7.sourceforge.net/examples/declstat.htm
>>
>> ok i know that seed is an interpreter language but maybe there is a way walter can allow something like this for his buildin statements
>>
>> or even better the case statement
>>
>> http://seed7.sourceforge.net/manual/stats.htm#case-statement
>>
>> as a statement-template wich can produce (with the help of the awaited static foreach) a nice objectfactory from a tuple or something like this
>>
>> ciao denni
>
> Stuff like this has been requested several times, but the same problem prevents these suggestions from being implemented: they break the separation of syntactic and semantic analysis. This increases the complexity of the compiler greatly.
>
> Now, some level of "custom code" may become available if/when D gets Lisp-style macros, which will (hopefully) allow for custom generation and reorganization of code by other code.
>
You should be able to do this now with mixins, although its not the neatest way to do things.
-Joel
| |||
March 08, 2007 and BTW - new version of metac is available | ||||
|---|---|---|---|---|
| ||||
Posted in reply to dennis luehring | http://www.maier-komor.de/metac/ | |||
June 05, 2015 Re: User defined statements for D like seed have? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to dennis luehring | http://seed7.sourceforge.net/index.htm seed7 is also a compiler! and i use it, after comming from D, with great pleasure. On Wednesday, 7 March 2007 at 22:02:00 UTC, dennis luehring wrote: > example how a for statement is declared > http://seed7.sourceforge.net/examples/declstat.htm > > ok i know that seed is an interpreter language but maybe there is a way walter can allow something like this for his buildin statements > > or even better the case statement > > http://seed7.sourceforge.net/manual/stats.htm#case-statement > > as a statement-template wich can produce (with the help of the awaited static foreach) a nice objectfactory from a tuple or something like this > > ciao denni | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply