D.gnu - DStar: feature patches for GDC-0.10 - dstar-1.tar.bz2
- Thomas Kühne <thomas-dloop kuehne.THISISSPAM.cn> Feb 10 2005
Attached are some patches that don't fix any bugs but introduce new features, well and maybe some bugs to. Consider those patches as part of a kind of D playground and not of the branded standard. 1) array[length] -> array[__length] 2) version=linux; version=Windows; etc are forbidden 3) treat non-breaking spaces outside of litterals as plain spaces 4) disallow empty statements like ";;" 5) version(!Windows) etc. By the way I noticed that David(gdc) and Anders(gdc-packages) use different parts / versions of the HTML / line ending fixes. The current complete version is: digitalmars.D.bugs/2548 ( There are minor details like formating error messages and the like.) Thomas
Feb 10 2005
Thomas Kühne wrote:Consider those patches as part of a kind of D playground and not of the branded standard. 1) array[length] -> array[__length]
Wouldn't _length be more consistant with _arguments and _argptr ?2) version=linux; version=Windows; etc are forbidden
I've added a few more predefined versions to the page at: http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/Version3) treat non-breaking spaces outside of litterals as plain spaces
excellent! I write nbsp all the time, with my Swedish keyboard... The only downside is that it makes the files non-ASCII, which isn't a problem for D but could be a nasty habit. ;-)4) disallow empty statements like ";;"
Neat, mixes well with the disallowed "while (1);" statement5) version(!Windows)
So much better than "version (Windows) { } else" workaroundBy the way I noticed that David(gdc) and Anders(gdc-packages) use different parts / versions of the HTML / line ending fixes.
The HTML-freezeup patch is something of a necessity... I'm trying to get all my patches upstream to David, hoping that his patches makes it upstream to Walter ? I added a few patches to the digitialmars.D.bugs group, like fixing main's return value and making the Phobos unittest run by finally fixing the broken std.format... --anders
Feb 10 2005
Anders wrote:Thomas Kühne wrote:Consider those patches as part of a kind of D playground and not of the branded standard. 1) array[length] -> array[__length]
Wouldn't _length be more consistant with _arguments and _argptr ?
It's very simple to change "__length" to "_length". I used "__length" because my code doesn't contain any "length" but only "_length"...2) version=linux; version=Windows; etc are forbidden
I've added a few more predefined versions to the page at: http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/Version
GNU and PPC64 seem to be missing.3) treat non-breaking spaces outside of litterals as plain spaces
excellent! I write nbsp all the time, with my Swedish keyboard...
Argh, I included the wrong patch. This one containts an obvious name typo.By the way I noticed that David(gdc) and Anders(gdc-packages) use different parts / versions of the HTML / line ending fixes.
The HTML-freezeup patch is something of a necessity... I'm trying to get all my patches upstream to David, hoping that his patches makes it upstream to Walter ?
Let's see. Thomas
Feb 11 2005








Thomas Kühne <thomas-dloop kuehne.THISISSPAM.cn>