Delight

Thomas Leonard talex5+d at gmail.com
Sun Oct 12 04:10:20 PDT 2008


On Sat, 11 Oct 2008 13:33:15 -0400, bearophile wrote:
> Thomas Leonard:
> 
>> I might rename some other types too. e.g.
>>   int16, int32, int64
>>   uint16, uint32, uint64
> 
> I don't like to type "int32" all the time, so I think "int" and "long"
> may be better.

"int" would still be available as an alias (probably to int64).

>>> - The syntax for "new" may be improved
>> How? It could be removed, I suppose, as in Python.
> 
> I don't know. Maybe the D syntax:
> new Classname

Doesn't that work at the moment?

>> Like this?
>>   if ':' in aString: ...
>>   if "seq" in aString: ...
> 
>> Any chance of getting this in D?
> 
> I think Walter doesn't like that in D.

Ah, OK. It's pretty useful, so I might add it anyway.

[sets] 
> It's just a module of mine, so (once it's complete) you can add it to
> the stanrdard modules of Delight... You may even load it by default, but
> Delight isn't Python, so adding an import when you want to use sets
> seems acceptable. (If necessary, it's probably easy to translate my
> "sets" module into Delight code).

No need. Delight can parse D code too. The only problem is D code doesn't 
indicate whether pointers can be null or not. I might add a "notnull" 
type modifier to the D parser so that D interfaces can be modified easily 
without changing their whole syntax.

> I suggest you to add few more examples of small Delight programs in your
> site,

There's a simple web server here, for a slightly longer example:

  http://delight.sourceforge.net/examples.html



More information about the Digitalmars-d-announce mailing list