Re: Progopedia - encyclopedia of programming languages
Michael Mittner wrote: A KR type book for D, “The D Programming Language”, written by Andrei Alexandrescu and published by Addison-Wesley Professional is scheduled for publication in May 1010. D has come a long way! It time travelled to the past!
Re: Progopedia - encyclopedia of programming languages
Ary Borenszweig a...@esperanto.org.ar wrote in message news:heg90n$5h...@digitalmars.com... Michael Mittner wrote: A KR type book for D, The D Programming Language, written by Andrei Alexandrescu and published by Addison-Wesley Professional is scheduled for publication in May 1010. D has come a long way! It time travelled to the past! That's a powerful language!
Re: Progopedia - encyclopedia of programming languages
Ary Borenszweig a...@esperanto.org.ar wrote in news:heg99k$6r...@digitalmars.com: I think the For each value in a numeric range, 1 increment can be replaced by: foreach(i; 0 .. limit) statement and the other with foreach_reverse(i; 0 .. limit) statement but these only work for D2 and probably some people here won't like the foreach_reverse version. Thanks for the suggestion. To accommodate this, I would need to divide D1 and D2 into separate languages. For example, Progopedia would require that KR C, C89, C85, and C99 be listed as separate languages. Versions in Progopedia are versions of an implementation. Thus, e.g., GCC 4.4.2 and GCC 4.4.1 would be separate versions. Indeead the GCC listing is (in theory) out of date at 4.2.4. It makes sense in an absurd sort of way. None of the other languages on Progopedia go in for this level of detail. Indeead the GCC listing is (in theory) out of date at 4.2.4.
Re: Progopedia - encyclopedia of programming languages
JMRyan wrote: I don't understand. You appear to be referring a connonical or otherwise previously publish version fo D. Or perhaps I misunderstood you. I meant the canonical samples/d/hello.d as in the DMD distributions. I didn't use writeln() because it is not available in D1. I added a note about that. Looking at other examples on Progopedia, it seems that puts() is beyond the scope of the article. Probably right. Same goes for adding Tango, quickly gets complicated. And of course it makes a couple of assumptions such as the terminal being in UTF-8. But I guess that's a Windows issue ? Actually, it makes a much safer assumption, namely that, whatever character set the terminal uses, it' ASCII compatible. I suppose it might have some trouble with an EBCDIC terminal. I suppose that's a good thing. :-) More troubling, I'm assuming the terminal is not UTF-16 or UTF-32. Worrying about this seems to be beyond the scope of the Progopedia article. If one is echoing parameters back (which normal hello is not), then there was a D problem with terminals that are not UTF-8: # such as ISO-8859-1: $ ./echo hallå världen ./echo Error: 4invalid UTF-8 sequence But it doesn't apply to this Progopedia hello but only to the D hello, so never mind me muddying up the waters in this thread. --anders
Re: Metaprogramming in D : Some Real-world Examples
Hello Lutger, Walter Bright wrote: Looks like Bill Baxter is giving a presentation on D Nov. 18! http://www.nwcpp.org/ slides are there! Very pretty, I bet it was a fine presentation. The slides are informative, good examples. re: the slides, are they avalable in .ppt or pdf for us ludites?