Bill Baxter escribió:
On Wed, Jan 28, 2009 at 12:46 AM, Ary Borenszweig <[email protected]> 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. :-)
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.
--bb