Re: My first email to Walter, ever

2013-07-09 Thread Kagamin
On Sunday, 7 July 2013 at 12:27:02 UTC, Peter Alexander wrote: :-( template allSatisfy(alias F, T...) { static if (T.length == 0) { enum allSatisfy = true; } else static if (T.length == 1) { enum allSatisfy = F!(T[0]); } else { enum

Re: A very basic blog about D

2013-07-09 Thread John Colvin
On Sunday, 7 July 2013 at 15:00:43 UTC, John Colvin wrote: I had some free time so I decided I should start a simple blog about D, implementing some unix utilities. I've (unsurprisingly) started with echo. http://foreach-hour-life.blogspot.co.uk/ It's nothing ground-breaking, but every

Re: NDC Oslo talk: Generic Programming Galore Using D

2013-07-09 Thread Andrei Alexandrescu
On 7/8/13 10:03 AM, Andrei Alexandrescu wrote: On 7/8/13 6:49 AM, Dicebot wrote: On Thursday, 4 July 2013 at 16:47:36 UTC, Andrei Alexandrescu wrote: Videos for my two NDC 2013 talks are now online. Generic Programming Galore using D at http://vimeo.com/68378925 and the HipHop Virtual Machine

Re: Is this D or is it Javascript?

2013-07-09 Thread Kagamin
On Saturday, 6 July 2013 at 00:21:54 UTC, Adam D. Ruppe wrote: // the second () is just because @property is broken writeln(Math.max()(12, 24)); // prints 24 With dynamic typing there's no way to tell if Math.max(12,24) is a method call or field delegate call. Javascript assumes it's member

Re: Is this D or is it Javascript?

2013-07-09 Thread Adam D. Ruppe
On Tuesday, 9 July 2013 at 19:14:30 UTC, Kagamin wrote: With dynamic typing there's no way to tell if Math.max(12,24) is a method call or field delegate call. The way my thing works is Math.max (or anything else) returns a ref var, and the (12,24) does opCall on it, which succeeds if the var

Re: Programming in D book is about 88% translated

2013-07-09 Thread Ali Çehreli
On 06/29/2013 01:08 AM, Johannes Pfau wrote: BTW: The link to wiki4d on this page http://ddili.org/ders/d.en/intro.html could be updated to http://wiki.dlang.org/Editors and / or http://wiki.dlang.org/IDEs Done. Additionally, thanks to Jerome Sniatecki, I made the Ranges chapter