Re: C# 4.0 dynamic vs std.variant

2010-06-30 Thread Lutger
Adam Ruppe wrote: > If you want to play with dmdscript, I have a port to D2 here: > http://arsdnet.net/dcode/dmdscript_d2.zip Super! thanks. > You have to compile it all at once: dmd *.d, instead of incremental, > or it won't link for some reason. > > There's some hacks in that code, since I d

Re: C# 4.0 dynamic vs std.variant

2010-06-29 Thread Adam Ruppe
If you want to play with dmdscript, I have a port to D2 here: http://arsdnet.net/dcode/dmdscript_d2.zip You have to compile it all at once: dmd *.d, instead of incremental, or it won't link for some reason. There's some hacks in that code, since I did the port using a dmd release that had a broke

Re: C# 4.0 dynamic vs std.variant

2010-06-29 Thread Jesse Phillips
Lutger Wrote: > TPDL discusses briefly how such a dynamic type can be implemented with > opDispatch and std.variant. The dynamic from TDPL also resolves method calls > at > runtime, and can add new methods at runtime too. It should be possible to add > a > dynamic language interpreter such as

Re: C# 4.0 dynamic vs std.variant

2010-06-29 Thread Lutger
Jesse Phillips wrote: > I found a simple article on the coming 'dynamic' type for C# 4.0[1]. I didn't > think I would find anything interesting about it since D already has > std.variant. There were two things of interest. > > 1) The possibility of mixing dynamic languages in the same code as sta

Re: C# 4.0 dynamic vs std.variant

2010-06-29 Thread Jesse Phillips
bearophile Wrote: > > Then once again C# is only catching up to D :) > > C#4 dynamic attribute is better than anything D has Better dynamic support than D, but surely not anything D has. > (but currently it's better for D2 to fix its bugs and finish to implement the > planned features). Agre

Re: C# 4.0 dynamic vs std.variant

2010-06-29 Thread bearophile
Jesse Phillips: > I found a simple article on the coming 'dynamic' type for C# 4.0[1]. C# 4 is available. > Then once again C# is only catching up to D :) C#4 dynamic attribute is better than anything D has (but currently it's better for D2 to fix its bugs and finish to implement the planned

C# 4.0 dynamic vs std.variant

2010-06-29 Thread Jesse Phillips
I found a simple article on the coming 'dynamic' type for C# 4.0[1]. I didn't think I would find anything interesting about it since D already has std.variant. There were two things of interest. 1) The possibility of mixing dynamic languages in the same code as static (like ASM in D). 2) When