Re: Utah Valley University teaches D (using TDPL)

2010-11-26 Thread Walter Bright
bearophile wrote: Lutger Blijdestijn: Actually the unix convention is to give exit code 0 as an indicator of success, so there is feedback. It is very usable for scripting. But currently something like that is not present in the D unittest system. Yes, it is. Unit test failures return a

Re: Utah Valley University teaches D (using TDPL)

2010-11-26 Thread bearophile
Walter: Yes, it is. Unit test failures return a non-zero exit code. I see, good. But real unit test systems don't just return that value, they give a more visible feedback, like the number of failed/passed tests. One line of text that shows those numbers is a good start. Bye, bearophile

Re: Utah Valley University teaches D (using TDPL)

2010-11-26 Thread bearophile
But real unit test systems don't just return that value, they give a more visible feedback, like the number of failed/passed tests. One line of text that shows those numbers is a good start. Or maybe that's not the job of a compiler... Bye, bearophile

Re: Utah Valley University teaches D (using TDPL)

2010-11-26 Thread Jonathan M Davis
On Friday 26 November 2010 17:17:56 bearophile wrote: Walter: Yes, it is. Unit test failures return a non-zero exit code. I see, good. But real unit test systems don't just return that value, they give a more visible feedback, like the number of failed/passed tests. One line of text that

Re: Utah Valley University teaches D (using TDPL)

2010-11-26 Thread Walter Bright
bearophile wrote: Walter: Yes, it is. Unit test failures return a non-zero exit code. I see, good. I wish you'd check these things before confidently posting incorrect assertions about how D behaves.

Re: Utah Valley University teaches D (using TDPL)

2010-11-26 Thread Walter Bright
Jonathan M Davis wrote: I'm a firm believer that D unit tests should not change how they fundamentally work at this point. I don't _want_ it to report the number of tests that passed. That's right. The number that fail is completely useless window dressing. That information is not at all

Re: Utah Valley University teaches D (using TDPL)

2010-11-26 Thread Jonathan M Davis
On Friday 26 November 2010 18:52:59 Walter Bright wrote: Jonathan M Davis wrote: I'm a firm believer that D unit tests should not change how they fundamentally work at this point. I don't _want_ it to report the number of tests that passed. That's right. The number that fail is

Re: Utah Valley University teaches D (using TDPL)

2010-11-21 Thread Sean Kelly
Fawzi Mohamed fa...@gmx.ch wrote: On 18-nov-10, at 09:11, Don wrote: Jonathan M Davis wrote: On Tuesday, November 16, 2010 13:33:54 bearophile wrote: Jonathan M Davis: Most of the rest (if not all of it) could indeed be done in a library. I am not sure it could be done nicely too

Re: Utah Valley University teaches D (using TDPL)

2010-11-18 Thread Don
Jonathan M Davis wrote: On Tuesday, November 16, 2010 13:33:54 bearophile wrote: Jonathan M Davis: Most of the rest (if not all of it) could indeed be done in a library. I am not sure it could be done nicely too :-) That would depend on what you're trying to do. Printing test success or

Re: Utah Valley University teaches D (using TDPL)

2010-11-18 Thread Fawzi Mohamed
On 18-nov-10, at 09:11, Don wrote: Jonathan M Davis wrote: On Tuesday, November 16, 2010 13:33:54 bearophile wrote: Jonathan M Davis: Most of the rest (if not all of it) could indeed be done in a library. I am not sure it could be done nicely too :-) That would depend on what you're trying

Re: Utah Valley University teaches D (using TDPL)

2010-11-18 Thread Bruno Medeiros
On 16/11/2010 21:11, Gide Nwawudu wrote: On Tue, 16 Nov 2010 10:54:50 -0800, Jonathan M Davis jmdavisp...@gmx.com wrote: On Tuesday, November 16, 2010 07:53:01 Sean Kelly wrote: bearophile Wrote: He also gives a quite useful unittest that the student implementation must pass, this is a good

Re: Utah Valley University teaches D (using TDPL)

2010-11-18 Thread Jonathan M Davis
On Thursday 18 November 2010 04:47:43 Bruno Medeiros wrote: On 16/11/2010 21:11, Gide Nwawudu wrote: On Tue, 16 Nov 2010 10:54:50 -0800, Jonathan M Davis jmdavisp...@gmx.com wrote: On Tuesday, November 16, 2010 07:53:01 Sean Kelly wrote: bearophile Wrote: He also gives a quite

Re: Utah Valley University teaches D (using TDPL)

2010-11-17 Thread Lutger Blijdestijn
bearophile wrote: Lutger Blijdestijn: Actually the unix convention is to give exit code 0 as an indicator of success, so there is feedback. It is very usable for scripting. But currently something like that is not present in the D unittest system. rdmd --main -unittest somemodule.d

Re: Utah Valley University teaches D (using TDPL)

2010-11-16 Thread Sean Kelly
bearophile Wrote: He also gives a quite useful unittest that the student implementation must pass, this is a good usage of unittests. The unit test ends like this: ... writeln(unit test passed); } Indeed, a person needs feedback that the unittests have run (and have succeed), I

Utah Valley University teaches D (using TDPL)

2010-11-15 Thread Andrei Alexandrescu
http://uvu.freshsources.com/page9/page7/files/Syllabus4450.html Andrei

Re: Utah Valley University teaches D (using TDPL)

2010-11-15 Thread David Gileadi
On 11/15/10 2:00 PM, Andrei Alexandrescu wrote: http://uvu.freshsources.com/page9/page7/files/Syllabus4450.html Andrei I had a class from Chuck; he introduced me to D. He's an excellent teacher.

Re: Utah Valley University teaches D (using TDPL)

2010-11-15 Thread Simen kjaeraas
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: [Good Stuff™] Awesome! -- Simen

Re: Utah Valley University teaches D (using TDPL)

2010-11-15 Thread bearophile
Andrei: http://uvu.freshsources.com/page9/page7/files/Syllabus4450.html This is good. Despite its bugs/unfinished parts D2 is a good language to teach certain kinds of lower level programming (and some OOP too). This is the page of the resources of the course: