Re: A tutorial on D templates

2012-02-08 Thread deadalnix
Le 14/01/2012 19:36, Walter Bright a écrit : Another issue is Kindle is black & white, so while the colored text does make it better, it should still be usable if rendered in black & white (which should be done anyway, as many people are color blind). A good practice is to back up coloring with

Re: A tutorial on D templates

2012-02-08 Thread deadalnix
Le 14/01/2012 19:26, Walter Bright a écrit : On 1/14/2012 12:36 AM, Jonathan M Davis wrote: I confess that it's a bit of a pet peeve of mine when people insist on avoiding words like you and your. I completely disagree that it's a problem. And there are times where avoiding it can cause problems

Re: A tutorial on D templates: updates

2012-01-30 Thread bls
On 01/30/2012 01:14 PM, bls wrote: Hi Philippe, slightly better .. class PersonStack { private string name; private int age; // Our Mixins mixin MIStack; mixin MIPublisher; this() { // Register som

Re: A tutorial on D templates: updates

2012-01-30 Thread bls
Hi Philippe, Ok, something more interesting it combines suggestion 2) and 3). Still a quick hack, not much tested, but I think the intention is clear. The snippets show how a publisher subscriber pattern can be mixed in. Further it shows how a simple class could become a stack, queue, list et

Re: A tutorial on D templates: updates

2012-01-30 Thread Philippe Sigaud
On Mon, Jan 30, 2012 at 13:07, bls wrote: > First of all thank you so much for this wonderful book! Thanks! > I would like to ask for a little enhancement regarding mixin templates. see > snippet. Yes, this section is still bit short. But, what enhancement are you talking about? The FooMixin te

Re: A tutorial on D templates: updates

2012-01-30 Thread bls
On 01/29/2012 12:44 PM, Philippe Sigaud wrote: Hello, I posted there a few weeks ago about a tutorial on D templates I put in github: https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf Since then, I received numerous mails, issues, advices and thanks. Thank to

Re: A tutorial on D templates: updates

2012-01-30 Thread Mattbeui
On Sunday, 29 January 2012 at 20:44:00 UTC, Philippe Sigaud wrote: Hello, I posted there a few weeks ago about a tutorial on D templates I put in github: https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf . . . As before, do not hesitate to read, comment, post

Re: A tutorial on D templates: updates

2012-01-29 Thread Andrei Alexandrescu
On 1/29/12 11:56 PM, Philippe Sigaud wrote: On Mon, Jan 30, 2012 at 06:16, Andrei Alexandrescu wrote: Great! Just give me the green light when you feel this is reddit-publishable. That should be OK now, thanks. Let it ride! http://www.reddit.com/r/programming/comments/p2qfd/d_templates_a_

Re: A tutorial on D templates: updates

2012-01-29 Thread Philippe Sigaud
On Mon, Jan 30, 2012 at 06:16, Andrei Alexandrescu wrote: > Great! Just give me the green light when you feel this is > reddit-publishable. That should be OK now, thanks.

Re: A tutorial on D templates: updates

2012-01-29 Thread Andrei Alexandrescu
On 1/29/12 2:44 PM, Philippe Sigaud wrote: Hello, I posted there a few weeks ago about a tutorial on D templates I put in github: https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf Since then, I received numerous mails, issues, advices and thanks. Thank to you

A tutorial on D templates: updates

2012-01-29 Thread Philippe Sigaud
Hello, I posted there a few weeks ago about a tutorial on D templates I put in github: https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf Since then, I received numerous mails, issues, advices and thanks. Thank to you all! Following the ideas found in TDPL, I

Re: A tutorial on D templates

2012-01-17 Thread Philippe Sigaud
On Tue, Jan 17, 2012 at 02:49, Nick Sabalausky wrote: > "dennis luehring" wrote in message > news:jeu3mf$94o$1...@digitalmars.com... >>> https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf >> >> ...with acrobat reader... > > Eewww.  Do youself a favor and grab a copy

Re: A tutorial on D templates

2012-01-16 Thread Nick Sabalausky
"dennis luehring" wrote in message news:jeu3mf$94o$1...@digitalmars.com... >> https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf > > ...with acrobat reader... Eewww. Do youself a favor and grab a copy of FoxIt Reader. Works just as well, but isn't an insane resou

Re: A tutorial on D templates

2012-01-16 Thread Nick Sabalausky
"Walter Bright" wrote in message news:jet0kk$1h97$1...@digitalmars.com... > On 1/14/2012 1:00 PM, Nick Sabalausky wrote: >> "Walter Bright" wrote in message >> news:jesl4i$30v3$1...@digitalmars.com... >>> >>> You and I are going to disagree on this. >>> >> >> Dosn't the reader mean "The reader a

Re: A tutorial on D templates

2012-01-16 Thread Jacob Carlborg
On 2012-01-16 21:41, Andrej Mitrovic wrote: Ah, I completely forgot about tupleof. That could work. Originally I've tried __traits() but it didn't work. Thanks. No problem. Although tupleof works for private and protected fields as well. Don't know if that would be a problem. -- /Jacob Carlb

Re: A tutorial on D templates

2012-01-16 Thread Andrej Mitrovic
Ah, I completely forgot about tupleof. That could work. Originally I've tried __traits() but it didn't work. Thanks.

Re: A tutorial on D templates

2012-01-16 Thread Jacob Carlborg
On 2012-01-16 12:43, Andrej Mitrovic wrote: On 1/15/12, Jacob Carlborg wrote: I'm not completely sure how it works but it looks like that Fields mixin can be replace with the code you have referenced from my Orange library and opDispatch. You mean your `fieldsOf` template? I'm not really sure

Re: A tutorial on D templates

2012-01-16 Thread Andrej Mitrovic
On 1/15/12, Jacob Carlborg wrote: > I'm not completely sure how it works but it > looks like that Fields mixin can be replace with the code you have > referenced from my Orange library and opDispatch. You mean your `fieldsOf` template? I'm not really sure how that would work, I've tried this:

Re: A tutorial on D templates

2012-01-16 Thread Ali Çehreli
On 01/15/2012 04:34 PM, Andrei Alexandrescu wrote: On 1/15/12 4:19 PM, Philippe Sigaud wrote: On Sun, Jan 15, 2012 at 17:00, Ali Çehreli wrote: I do think a big range tutorial is overdue. Andrei's article is good, but we need something a bit more detailed / for newbies I am hoping that this

Re: A tutorial on D templates

2012-01-15 Thread Andrei Alexandrescu
On 1/15/12 4:19 PM, Philippe Sigaud wrote: On Sun, Jan 15, 2012 at 17:00, Ali Çehreli wrote: I do think a big range tutorial is overdue. Andrei's article is good, but we need something a bit more detailed / for newbies I am hoping that this is good enough for now: http://ddili.org/ders/d

Re: A tutorial on D templates

2012-01-15 Thread Philippe Sigaud
On Sun, Jan 15, 2012 at 17:00, Ali Çehreli wrote: >> I do think a big range tutorial is overdue. Andrei's article is good, >> but we need something a bit more detailed / for newbies > > > I am hoping that this is good enough for now: > >  http://ddili.org/ders/d.en/ranges.html It sure is! This s

Re: A tutorial on D templates

2012-01-15 Thread Philippe Sigaud
>> As for Orange, is it OK with you if I show a small part of it? Is it >> OK for me to link to the github project? > > Sure, go ahead and use whatever you want :) Thanks. >> Btw, I think that by using the technics shown in Nick's last year >> article (generating switch/cases from CT information

Re: A tutorial on D templates

2012-01-15 Thread Ali Çehreli
On 01/15/2012 12:18 PM, Walter Bright wrote: On 1/15/2012 8:00 AM, Ali Çehreli wrote: I am hoping that this is good enough for now: http://ddili.org/ders/d.en/ranges.html Please, can you turn this into a Kindle ebook? Both the Turkish and English versions? http://ddili.org/ders/d.en/index.ht

Re: A tutorial on D templates

2012-01-15 Thread Walter Bright
On 1/15/2012 8:00 AM, Ali Çehreli wrote: I am hoping that this is good enough for now: http://ddili.org/ders/d.en/ranges.html Please, can you turn this into a Kindle ebook? Both the Turkish and English versions? http://ddili.org/ders/d.en/index.html

Re: A tutorial on D templates

2012-01-15 Thread Walter Bright
On 1/15/2012 8:00 AM, Ali Çehreli wrote: I am hoping that this is good enough for now: http://ddili.org/ders/d.en/ranges.html Very nice, I'll read it more carefully later.

Re: A tutorial on D templates

2012-01-15 Thread Walter Bright
On 1/15/2012 5:34 AM, Philippe Sigaud wrote: I do think a big range tutorial is overdue. Andrei's article is good, but we need something a bit more detailed / for newbies and shown in the website. Maybe even a .ddoc file with phobos. Yeah, we badly need a "The Range Manifesto".

Re: A tutorial on D templates

2012-01-15 Thread Jesse Phillips
On Sunday, 15 January 2012 at 00:54:37 UTC, Georg Wrede wrote: Why don't we just let the guy write his thing in peace, before demanding a complete book with stylistically professional grammar and style? I mean, at this rate we are beating the horse to death before we've even put it in front o

Re: A tutorial on D templates

2012-01-15 Thread Walter Bright
On 1/15/2012 5:50 AM, Philippe Sigaud wrote: In fact, I'm thrilled to receive remarks, it means people are interested. Nothing worse than silence! Also, I would be doing you a disservice if you ask for feedback, and I don't because I thought it might hurt your feelings.

Re: A tutorial on D templates

2012-01-15 Thread Ali Çehreli
On 01/15/2012 05:34 AM, Philippe Sigaud wrote: On Sun, Jan 15, 2012 at 12:16, Jacob Carlborg wrote: Thank you all for the encouragements! Templates is just one part of the language. There are many other parts to write about :) *snort* I do think a big range tutorial is overdue. Andrei's a

Re: A tutorial on D templates

2012-01-15 Thread d coder
> Btw, it's cool you could generate the pdf. Did you have minted and > pygments already installed? > No. But I downloaded minted.sty and apt-get pygmentize when pdflatex failed. > Don't hesitate to tell me where it's unclear. If you have any example > in mind or some difficulty that constantly t

Re: A tutorial on D templates

2012-01-15 Thread Jacob Carlborg
On 2012-01-15 14:33, Philippe Sigaud wrote: On Sun, Jan 15, 2012 at 12:26, Jacob Carlborg wrote: I see that you have referenced my Orange library, cool. As for Orange, is it OK with you if I show a small part of it? Is it OK for me to link to the github project? Mainly, I wanted to show some

Re: A tutorial on D templates

2012-01-15 Thread Philippe Sigaud
On Sun, Jan 15, 2012 at 03:27, Andrei Alexandrescu wrote: > On 1/14/12 6:54 PM, Georg Wrede wrote: >> Why don't we just let the guy write his thing in peace, before demanding >> a complete book with stylistically professional grammar and style? >> >> I mean, at this rate we are beating the horse

Re: A tutorial on D templates

2012-01-15 Thread Philippe Sigaud
On Sun, Jan 15, 2012 at 11:50, d coder wrote: >> can't open the pdf with acrobat reader under win7 :( >> (the file seems to be ok, contains the pdf header) >> >> im using the latest acrobat reader x > > Same here. When I regenerated the pdf after cloning the git repository > the pdf doc came out

Re: A tutorial on D templates

2012-01-15 Thread Philippe Sigaud
On Sun, Jan 15, 2012 at 12:16, Jacob Carlborg wrote: >> Thank you all for the encouragements! > > > Templates is just one part of the language. There are many other parts to > write about :) *snort* I do think a big range tutorial is overdue. Andrei's article is good, but we need something a bit

Re: A tutorial on D templates

2012-01-15 Thread Philippe Sigaud
On Sun, Jan 15, 2012 at 12:26, Jacob Carlborg wrote: > I see that you have referenced my Orange library, cool. As for Orange, is it OK with you if I show a small part of it? Is it OK for me to link to the github project? Mainly, I wanted to show some tricks you used in util/Reflection.d and util/

Re: A tutorial on D templates

2012-01-15 Thread Jacob Carlborg
On 2012-01-13 22:20, Philippe Sigaud wrote: [Cross-posted with D.learn, since it's also a learning-related post] Hello all, I discovered D a few years ago and, seeing the recent increase in community projects, I looked for a way to bring my own small part to it. I quite like D templates and wa

Re: A tutorial on D templates

2012-01-15 Thread Jacob Carlborg
On 2012-01-14 22:04, Philippe Sigaud wrote: On Sat, Jan 14, 2012 at 21:07, Andrei Alexandrescu wrote: On 1/14/12 5:21 AM, Philippe Sigaud wrote: Uh, I don't think it'll ever be a book. I didn't write it with a book in mind. It's organized as a book (TOC, index, structure) and has 141 page

Re: A tutorial on D templates

2012-01-15 Thread d coder
>> https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf > > > can't open the pdf with acrobat reader under win7 :( > (the file seems to be ok, contains the pdf header) > > im using the latest acrobat reader x Same here. When I regenerated the pdf after cloning the git

Re: A tutorial on D templates

2012-01-15 Thread dennis luehring
https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf can't open the pdf with acrobat reader under win7 :( (the file seems to be ok, contains the pdf header) im using the latest acrobat reader x

Re: A tutorial on D templates

2012-01-14 Thread Andrei Alexandrescu
On 1/14/12 6:54 PM, Georg Wrede wrote: On 01/14/2012 08:45 PM, Walter Bright wrote: On 1/14/2012 7:05 AM, Jeff Nowakowski wrote: On 01/14/2012 03:16 AM, Walter Bright wrote: Minor stylistic nit pet peeve of mine: please remove the word "you" and "your" from the prose. That sounds a bit stri

Re: A tutorial on D templates

2012-01-14 Thread Georg Wrede
On 01/14/2012 08:45 PM, Walter Bright wrote: On 1/14/2012 7:05 AM, Jeff Nowakowski wrote: On 01/14/2012 03:16 AM, Walter Bright wrote: Minor stylistic nit pet peeve of mine: please remove the word "you" and "your" from the prose. That sounds a bit strict, and looking at one of your articles

Re: A tutorial on D templates

2012-01-14 Thread Georg Wrede
On 01/14/2012 11:04 PM, Philippe Sigaud wrote: On Sat, Jan 14, 2012 at 21:07, Andrei Alexandrescu wrote: On 1/14/12 5:21 AM, Philippe Sigaud wrote: Uh, I don't think it'll ever be a book. I didn't write it with a book in mind. It's organized as a book (TOC, index, structure) and has 141 pa

Re: A tutorial on D templates

2012-01-14 Thread Andrei Alexandrescu
On 1/14/12 3:04 PM, Philippe Sigaud wrote: On Sat, Jan 14, 2012 at 21:07, Andrei Alexandrescu wrote: On 1/14/12 5:21 AM, Philippe Sigaud wrote: Uh, I don't think it'll ever be a book. I didn't write it with a book in mind. It's organized as a book (TOC, index, structure) and has 141 pages

Re: A tutorial on D templates

2012-01-14 Thread Ali Çehreli
On 01/14/2012 12:14 PM, Andrei Alexandrescu wrote: Since we're on this topic I can't stop picking - all in good fun I hope - on Jonathan, the master of words. The following two sentences convey the same exact information: 1. There are certainly times when reducing how much "you" is used reduce

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 17:00, Andrei Alexandrescu wrote: > On 1/14/12 9:56 AM, Andrei Alexandrescu wrote: > [snip] > > Oh, one more thing. It would be great to make the explanatory boxes either > floats, sidebars, or \mbox{}es so they don't span more than one page. Look > what happened with "Spec

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 16:56, Andrei Alexandrescu wrote: > On 1/13/12 3:20 PM, Philippe Sigaud wrote: > "They are used everywhere in Phobos, D standard library and any D user > should know about them." -> "They are used everywhere in Phobos---D's > standard library---and therefore any D user sho

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 14:56, Zachary Lund wrote: > On page 78 where template mixins are discussed, some of the variable names > feel rather confusing. I would suggest changing them to be more distinct. OK, done. Tell me if it's better?

Re: A tutorial on D templates

2012-01-14 Thread Walter Bright
On 1/14/2012 1:09 PM, Timon Gehr wrote: In longer posts, I think the information is often laid out in an approximately palindromic way. We're not in Notlob, you know.

Re: A tutorial on D templates

2012-01-14 Thread Walter Bright
On 1/14/2012 1:00 PM, Nick Sabalausky wrote: "Walter Bright" wrote in message news:jesl4i$30v3$1...@digitalmars.com... You and I are going to disagree on this. Dosn't the reader mean "The reader and I are going to disagree on this"? ;) (only j/k, of course. Although I have always hated when

Re: A tutorial on D templates

2012-01-14 Thread Nick Sabalausky
"Philippe Sigaud" wrote in message news:mailman.374.1326575051.16222.digitalmars-d-annou...@puremagic.com... > On Sat, Jan 14, 2012 at 21:07, Andrei Alexandrescu > wrote: >> On 1/14/12 5:21 AM, Philippe Sigaud wrote: >>> >>> Uh, I don't think it'll ever be a book. I didn't write it with a book i

Re: A tutorial on D templates

2012-01-14 Thread Timon Gehr
On 01/14/2012 09:14 PM, Andrei Alexandrescu wrote: Since we're on this topic I can't stop picking - all in good fun I hope - on Jonathan, the master of words. The following two sentences convey the same exact information: 1. There are certainly times when reducing how much "you" is used reduce

Re: A tutorial on D templates

2012-01-14 Thread Nick Sabalausky
"Walter Bright" wrote in message news:jesifv$2sm9$1...@digitalmars.com... > > - > giving you powerful compile-time code generation abilities that'll make > your code cleaner, more flexible and even more ecient. > > => > > giving powerful compile-time code generation abilitie

Re: A tutorial on D templates

2012-01-14 Thread Nick Sabalausky
"Walter Bright" wrote in message news:jesl4i$30v3$1...@digitalmars.com... > > You and I are going to disagree on this. > Dosn't the reader mean "The reader and I are going to disagree on this"? ;) (only j/k, of course. Although I have always hated when authors say "the reader" instead of "you"

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 21:07, Andrei Alexandrescu wrote: > On 1/14/12 5:21 AM, Philippe Sigaud wrote: >> >> Uh, I don't think it'll ever be a book. I didn't write it with a book in >> mind. > > > It's organized as a book (TOC, index, structure) and has 141 pages with > quite a few more to come. A

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
>> Maybe I'll write a small script to extract code samples and compile >> them. Do you have anything like this for TPDL? > > > Emailed. Got it, thanks a lot! >> I have a problem with implicit main() and/or presenting in one sample >> code that should be in the global scope and some that must be p

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 21:14, Andrei Alexandrescu wrote: > This pattern is quite frequent in Jonathan's posts. I trained myself to skip > the last sentence of each paragraph and often the last paragraph entirely. :) I do the same.

Re: A tutorial on D templates

2012-01-14 Thread Andrei Alexandrescu
Since we're on this topic I can't stop picking - all in good fun I hope - on Jonathan, the master of words. The following two sentences convey the same exact information: 1. There are certainly times when reducing how much "you" is used reduces the amount of text at no extra cost, but there a

Re: A tutorial on D templates

2012-01-14 Thread Andrei Alexandrescu
On 1/14/12 5:21 AM, Philippe Sigaud wrote: Uh, I don't think it'll ever be a book. I didn't write it with a book in mind. It's organized as a book (TOC, index, structure) and has 141 pages with quite a few more to come. At this point it would be more difficult to make it /not/ a book. Andr

Re: A tutorial on D templates

2012-01-14 Thread Andrei Alexandrescu
On 1/14/12 12:26 PM, Walter Bright wrote: On 1/14/2012 12:36 AM, Jonathan M Davis wrote: I confess that it's a bit of a pet peeve of mine when people insist on avoiding words like you and your. I completely disagree that it's a problem. And there are times where avoiding it can cause problems an

Re: A tutorial on D templates

2012-01-14 Thread Andrei Alexandrescu
On 1/14/12 11:08 AM, Philippe Sigaud wrote: On Sat, Jan 14, 2012 at 16:56, Andrei Alexandrescu wrote: On 1/13/12 3:20 PM, Philippe Sigaud wrote: https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf (click on View Raw) If you have any comment, criticism, explan

Re: A tutorial on D templates

2012-01-14 Thread Andrei Alexandrescu
On 1/14/12 10:57 AM, Philippe Sigaud wrote: On Sat, Jan 14, 2012 at 17:00, Andrei Alexandrescu wrote: On 1/14/12 9:56 AM, Andrei Alexandrescu wrote: [snip] Oh, one more thing. It would be great to make the explanatory boxes either floats, sidebars, or \mbox{}es so they don't span more than on

Re: A tutorial on D templates

2012-01-14 Thread Jonathan M Davis
On Saturday, January 14, 2012 11:30:25 Walter Bright wrote: > You and I are going to disagree on this. I didn't really expect otherwise. - Jonathan M Davis

Re: A tutorial on D templates

2012-01-14 Thread Walter Bright
On 1/14/2012 11:03 AM, Andrej Mitrovic wrote: Counter-argument: You can't make a pull request to a book. Just take a look at the mountain of errata entries for tdpl. Ebooks can be fixed easily. Print books cannot.

Re: A tutorial on D templates

2012-01-14 Thread Walter Bright
On 1/14/2012 11:00 AM, Jonathan M Davis wrote: There are certainly times when reducing how much "you" is used reduces the amount of text at no extra cost, but there are other times, when it's far more natural to use "you," and it can become harder to produce sentences without completely reworking

Re: A tutorial on D templates

2012-01-14 Thread Andrej Mitrovic
Counter-argument: You can't make a pull request to a book. Just take a look at the mountain of errata entries for tdpl.

Re: A tutorial on D templates

2012-01-14 Thread Jonathan M Davis
On Saturday, January 14, 2012 10:26:22 Walter Bright wrote: > On 1/14/2012 12:36 AM, Jonathan M Davis wrote: > > I confess that it's a bit of a pet peeve of mine when people insist on > > avoiding words like you and your. I completely disagree that it's a > > problem. And there are times where avoi

Re: A tutorial on D templates

2012-01-14 Thread Walter Bright
On 1/14/2012 7:05 AM, Jeff Nowakowski wrote: On 01/14/2012 03:16 AM, Walter Bright wrote: Minor stylistic nit pet peeve of mine: please remove the word "you" and "your" from the prose. That sounds a bit strict, and looking at one of your articles I see it used in the second sentence: "A pure

Re: A tutorial on D templates

2012-01-14 Thread Walter Bright
On 1/14/2012 3:21 AM, Philippe Sigaud wrote: I strongly encourage you to continue with it, and release it as a book. We could sure use another book on D! Uh, I don't think it'll ever be a book. I didn't write it with a book in mind. It looks like a book, and I see no reason why it can't be. I

Re: A tutorial on D templates

2012-01-14 Thread Walter Bright
On 1/14/2012 12:36 AM, Jonathan M Davis wrote: I confess that it's a bit of a pet peeve of mine when people insist on avoiding words like you and your. I completely disagree that it's a problem. And there are times where avoiding it can cause problems and make the text more awkward (though it is

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 16:56, Andrei Alexandrescu wrote: > On 1/13/12 3:20 PM, Philippe Sigaud wrote: >> >> >> https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf >> >> (click on View Raw) >> >> If you have any comment, criticism, explanation, what have you, I'm game

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 17:00, Andrei Alexandrescu wrote: > On 1/14/12 9:56 AM, Andrei Alexandrescu wrote: > [snip] > > Oh, one more thing. It would be great to make the explanatory boxes either > floats, sidebars, or \mbox{}es so they don't span more than one page. Look > what happened with "Spec

Re: A tutorial on D templates

2012-01-14 Thread Andrei Alexandrescu
On 1/14/12 9:56 AM, Andrei Alexandrescu wrote: [snip] Oh, one more thing. It would be great to make the explanatory boxes either floats, sidebars, or \mbox{}es so they don't span more than one page. Look what happened with "Specializations or static if or Templates Constraints?" on page 21.

Re: A tutorial on D templates

2012-01-14 Thread Andrei Alexandrescu
On 1/13/12 3:20 PM, Philippe Sigaud wrote: https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf (click on View Raw) If you have any comment, criticism, explanation, what have you, I'm game. This is great! Should I post to reddit, or hold off a bit more? The docum

Re: A tutorial on D templates

2012-01-14 Thread Jeff Nowakowski
On 01/14/2012 03:16 AM, Walter Bright wrote: Minor stylistic nit pet peeve of mine: please remove the word "you" and "your" from the prose. That sounds a bit strict, and looking at one of your articles I see it used in the second sentence: "A pure function does what you'd expect — the compil

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 14:56, Zachary Lund wrote: > On page 78 where template mixins are discussed, some of the variable names > feel rather confusing. I would suggest changing them to be more distinct. OK, added as an issue. You mean all the 'name', 'Named', 'named'?

Re: A tutorial on D templates

2012-01-14 Thread Zachary Lund
On page 78 where template mixins are discussed, some of the variable names feel rather confusing. I would suggest changing them to be more distinct.

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Sat, Jan 14, 2012 at 09:16, Walter Bright wrote: > On 1/13/2012 1:20 PM, Philippe Sigaud wrote: >> >> This also extend to anyone who would want to share some template love/lore >> with >> the rest of us. > > > I see you've already done a great deal of work on this, it looks nice! Thanks. LaTeX

Re: A tutorial on D templates

2012-01-14 Thread Jonathan M Davis
On Saturday, January 14, 2012 00:16:37 Walter Bright wrote: > On 1/13/2012 1:20 PM, Philippe Sigaud wrote: > > This also extend to anyone who would want to share some template > > love/lore with the rest of us. > > I see you've already done a great deal of work on this, it looks nice! I > strongly

Re: A tutorial on D templates

2012-01-14 Thread Walter Bright
On 1/13/2012 1:20 PM, Philippe Sigaud wrote: This also extend to anyone who would want to share some template love/lore with the rest of us. I see you've already done a great deal of work on this, it looks nice! I strongly encourage you to continue with it, and release it as a book. We could

Re: A tutorial on D templates

2012-01-14 Thread Philippe Sigaud
On Fri, Jan 13, 2012 at 23:07, bearophile wrote: > Philippe Sigaud: > >> https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf >> >> (click on View Raw) > > I am using a pdf blocking plug-in, that causes that GitHub link to save a > fake pdf file :-( On the main proje

Re: A tutorial on D templates

2012-01-13 Thread bearophile
Philippe Sigaud: > https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/dtemplates.pdf > > (click on View Raw) I am using a pdf blocking plug-in, that causes that GitHub link to save a fake pdf file :-( Is your tutorial containing the (a,b) => a * b syntax too? I'd like operator

A tutorial on D templates

2012-01-13 Thread Philippe Sigaud
[Cross-posted with D.learn, since it's also a learning-related post] Hello all, I discovered D a few years ago and, seeing the recent increase in community projects, I looked for a way to bring my own small part to it. I quite like D templates and wanted to try LaTeX again, so I decided to bite