www.digitalmars.com         C & C++   DMDScript  

D.gnu - DStar: feature patches for GDC-0.10 - dstar-1.tar.bz2

reply Thomas Kühne <thomas-dloop kuehne.THISISSPAM.cn> writes:
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


begin 0644 dstar-1.tar.bz2
M0EIH.3%!629366K8'&0`%A-_S/HZ`!![_________O____X8`"````"`"&`6
MO/H?2NYOD/=>\[T,^^X[LWO;1PW.7?5]Z%%-C[W.^P`%U9L"YF INWKR=[-#
M>]RO<SJZ;UH=H\$DD!#04\1DP$Q&0TTT">35/*9D])A-,C($VIH:/4`&A-)A
M,0348*>IH`T:& !HR```& `!H`$D$(4VIDGDR)Y1Z2/1/48 R9&FFU/4`:--
M& ](```$FE$12#RGJ>IIZAZ1YI(`:`T-!H`T`, ````1*)#2GB-3T>4:4PTT
MTTT9-!'J&3U`&(:,AY0#0`R-`J2(0`F F",D]#4QJ-4_)D3TC:2>H\I^IZIZ
M ]0TR#!&3(;KD_YCMLXR8,?B2V))'0 `<7>*(JL55455 JLE)KR]'D3?X=";
MYS$0W:[;MRP[/%C9JQ2DFE)-2HEB11L0HHE"1 !D2`"$,P*2#W)9"D=Q2P%%
M Q H P.X0H""*(I`4X"T$8B%+#(H?)SQ4BK%,_QH$U4&"B*B`Q8,V%L6.!(7
M"6-']3`=CT3EWSR[]#E,.!JR2<5GLE< Z"X $(IJTH1!(983I),#(J(B`1!%
M(,$(B2&\(S+)C'W[W!H&2Q#3FF,$P*,"(ECGHV1`-:"!UA2XOQ2C26&S)$55
M8BL 0WT =D H,5!<$$7S BR<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J,0 $&0 !122%1G4WN(8)%YSK77QL^N[H9F3&QIE*T&0P1;*E(S'N
MU:YL!*<JT6S+P[<!PKO0#`I-#78#[9*;R6`3*QQB8-PI#K]1%08J&HG(J5)0
M;TA$*!%2'QPLZO.#8+Q3(TF/KV V!<1!R"H3+B//&2[0Y)5?*P[#&IGP#:R=
M*) ,:E>-V_&,''*-N>TTKN5U_E:SW.$7.LSAM8+Q<0Q1S22HR6J".!AW*D+;
M?,U6,B3IHK0M!YJ+276'#=+/2GS)A_M ;&8=M4 C&!($)"*Y+,P/.J9BN<,`
M4D9UENO[_0F+E*E(YY)JO9.EX*+&B1IDAIK*]25%0&S!WM#,I43[GXBK)U"G
M#%5%3A:VJG#R-NW%DO+DG.9]DCU?7J3V<+;JCOI%8T^K">>)M4/LG9(8,&9M
M>1R'.J\2RO&_&4 *"J P)-7C1O_\*9S=DHGK\?K6G$G!IX-N^!M[FTDZ0IN*
MI>.=!B[3`.)'0$\`U=[+&28=I/W;9A !2`'>*CX=T>&M($HBI//"8*9LLS,Q
M(?7E#6^7/-A#U,(Z]DM;AC':SS ?<5Q/)YK8L7OZGT<RS5J^%F8&5=3(II`5
M;FKW/6`/5?S'"X)J#[<0X./!HG00PY1- Z,P,G]`DSD$I(;0VYF&%+(+;93(
-2'_B[DBG"A(-6P., +<0
`
end
Feb 10 2005
parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
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/Version
 3) 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);" statement
 5) version(!Windows)
So much better than "version (Windows) { } else" workaround
 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 ? 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
parent Thomas Kühne <thomas-dloop kuehne.THISISSPAM.cn> writes:
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