www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Fixing sample files

reply Walter Bright <newshound2 digitalmars.com> writes:
https://issues.dlang.org/show_bug.cgi?id=17099

This is a bit embarrassing.

It seems that the samples fail because they use std.stream, which has been 
removed. Anyone want to fix them to use stdio instead?
Apr 12 2017
next sibling parent reply Basile B. <b2.temp gmx.com> writes:
On Wednesday, 12 April 2017 at 19:58:47 UTC, Walter Bright wrote:
 https://issues.dlang.org/show_bug.cgi?id=17099

 This is a bit embarrassing.

 It seems that the samples fail because they use std.stream, 
 which has been removed. Anyone want to fix them to use stdio 
 instead?
Since dmd is shipped with DUB one can just put some embedded SDL descriptions and put undead as dependency. A bit off topic but all these examples are very old-fashioned imho. Everything could be replaced with more idiomatic D code, using phobos.
Apr 12 2017
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 4/12/2017 1:30 PM, Basile B. wrote:
 Since dmd is shipped with DUB one can just put some embedded SDL descriptions
 and put undead as dependency.
Better to just fix them.
 A bit off topic but all these examples are very old-fashioned imho. Everything
 could be replaced with more idiomatic D code, using phobos.
If you're willing to do it?
Apr 12 2017
parent reply Basile B. <b2.temp gmx.com> writes:
On Thursday, 13 April 2017 at 01:13:23 UTC, Walter Bright wrote:
 On 4/12/2017 1:30 PM, Basile B. wrote:
 Since dmd is shipped with DUB one can just put some embedded 
 SDL descriptions
 and put undead as dependency.
Better to just fix them.
 A bit off topic but all these examples are very old-fashioned 
 imho. Everything
 could be replaced with more idiomatic D code, using phobos.
If you're willing to do it?
If you agree on the principle then let's rather make a call to contributions in another post ? I'm sure that many users will propose something. I'm volunteer to supervise the topic and eventually to make a common PR in DMD.
Apr 12 2017
next sibling parent Basile B. <b2.temp gmx.com> writes:
On Thursday, 13 April 2017 at 01:34:52 UTC, Basile B. wrote:
 On Thursday, 13 April 2017 at 01:13:23 UTC, Walter Bright wrote:
 On 4/12/2017 1:30 PM, Basile B. wrote:
 Since dmd is shipped with DUB one can just put some embedded 
 SDL descriptions
 and put undead as dependency.
Better to just fix them.
Another option, remove the samples, as suggested on IRC.
Apr 12 2017
prev sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 04/12/2017 09:34 PM, Basile B. wrote:
 On Thursday, 13 April 2017 at 01:13:23 UTC, Walter Bright wrote:
 On 4/12/2017 1:30 PM, Basile B. wrote:
 Since dmd is shipped with DUB one can just put some embedded SDL
 descriptions
 and put undead as dependency.
Better to just fix them.
 A bit off topic but all these examples are very old-fashioned imho.
 Everything
 could be replaced with more idiomatic D code, using phobos.
If you're willing to do it?
If you agree on the principle then let's rather make a call to contributions in another post ? I'm sure that many users will propose something. I'm volunteer to supervise the topic and eventually to make a common PR in DMD.
Walter has already submitted a couple of fixes. Best leadership is by example, so if you're up for it please go ahead and post PRs for the fixes. Thanks! -- Andrei
Apr 13 2017
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2017-04-12 21:58, Walter Bright wrote:
 https://issues.dlang.org/show_bug.cgi?id=17099

 This is a bit embarrassing.

 It seems that the samples fail because they use std.stream, which has
 been removed. Anyone want to fix them to use stdio instead?
Seems like compiling the samples should be part of the regular CI builds. -- /Jacob Carlborg
Apr 13 2017