Descent 0.5.4 released

Bill Baxter wbaxter at gmail.com
Tue Jan 27 17:54:33 PST 2009


On Wed, Jan 28, 2009 at 10:33 AM, Ary Borenszweig <ary at esperanto.org.ar> wrote:
> Bill Baxter escribió:
>>
>> On Wed, Jan 28, 2009 at 12:46 AM, Ary Borenszweig <ary at esperanto.org.ar>
>> wrote:
>>>
>>> Ary Borenszweig wrote:
>>>
>>> Here's the video!
>>>
>>> http://www.youtube.com/watch?v=oAhrFQVnsrY
>>>
>>> :-)
>>>
>>
>> By the way, in the vid you use a plain int param in your opApply
>> delegate, instead of "ref int".  I think this will not work.  At least
>> I seem to remember finding that opApply doesn't work unless I make all
>> the delegate's arguments ref.
>>
>> I think some of that came from an auto-complete code template, so if
>> the code template doesn't include the 'ref' it should, as a hint to
>> the programmer.
>
> I'll correct that, then.
>
>>
>> Another question -- I was wondering what it does for CTFE functions.
>> I'm guessing it evaluates them and spits out the result.  If so that
>> could be very very helpful.  Especially for code-building CTFE mixins.
>>  I don't think you had an example like that in the vid.
>
> It does! See the first part of the video, when I do:
>
> int x = 1 + 2 + 3 + 4 + someFunc(5);
>
> and it shows:
>
> int x = 25;
>
> It just evaluated someFunc. :-)

Rockin!


>> This compile time view could be a great debugging and learning aid for
>> D.  I think it's quite exciting.  I wonder if someone can get it
>> working on something like http://paste.dprogramming.com/
>
> You mean, web? The java code can be used in the backend for that with little
> modification, I think that's quite possible.

Yeh, web.  There's already a site where you can paste in D code and
the server will compile and run the code for you.  A compile-time view
button on that page would be great.  Not that you should be the one to
do it or anything.  Just thinking it would be nifty, that's all.

--bb


More information about the Digitalmars-d-announce mailing list