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:
http://www.digitalmars.com/drn-bin/wwwnews?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


M,0348*>IH`T:& !HR```& `!H`$D$(4VIDGDR)Y1Z2/1/48 R9&FFU/4`:--
M& ](```$FE$12#RGJ


MYS$0W:[;MRP[/%C9JQ2DFE)-2HEB11L0HHE"1 !D2`"$,P*2#W)9"D=Q2P%%

M"6-']3`=CT3EWSR[]#E


MEHI1V,5E,#H+IC>CKNEDM1>Z+K%UU4J56-D['88&,F"3-%F47+(*%.5AT1AD
MG.3454B\Z+,A,=^&<8$'O<+PD8)! ? F:T$\71VY);M,\LG[]\W#HDH^&=R)
M5S0,-96)P(K=9I3.S%BCIQGJ65R;-9<,S-4RF:WMK5,UVU=O9]KC7:.-=FCF
MFXED)`ZD-B'3C 0JT1 VE01&A10:M"P0J%" 4EHJ*K04J!:J*,+MG;V$P (R

M;2"ID&KD3+"3+$ZD*M<+[Y!-5>`-8IYB4CR+`>.=A"C8"`MQT;NQN[YO</&]
M/8MW#U":!?KS#K

MAJFFF;?9M5<EJJB(J*MEK555^-UCCXU_(J8.IUJ=ZGL698KK',R7:#F/W9V 
M;(Q^;W2^/)Z/4O[#YN:KLV!Y:'[TQ;LV&2<1ZVCA3_KHFY)K-)[7WIGQ,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B.A
M7UU^$Q2#VD5
MD%:44*%3*L/5XEV>9K#XRTLJ%>,)%P*T#FCITT86%VO8;8TQCNO/'-'UGM]U
M_RXD^K/-?PV39)%(:TYMQ?0F=1Q+J2EX3?V4[W)6DX$ENK<E)QCK^S`P5 M:

M+ H\ M,Q5]/UAX3;([O-/.T/T/"^0FXU1?W/&RHK%2U15 L VC:`E OO8,<Q



M D'O]F]+W< (UT5(^[X0:8*K$/#CP#PAQ"8.Y(+#UY5$2)=]C/R+4,^(K%NQ

M]$].`^0T\<20F=W7SZMZ*C-/4D;8()4UD^*^R4(F"5< L' )^.)3,I2U*J9N
M.,DZ5XVZR93%C EA42A:I+)1WY>[$L^6,3,E)"BA*25<H,:B'O\./]F43.<N
M:(O)-YE<0NE.M:I(J1LDCZ#YUX>S,D_R>!H%A\7TP'HY5D.NN0<1G7,2E3A^

MB-]O$U`.^#XTUI,MBE*'&U]K9P8+2:N$0YXJ2"\1^8HH"Z\2[4TOF:4P1J,V
MB+3!%$:-"L[K[[[>J.`$^A<6^'N'>8.L!8:=I-,AZ;Q[[-776>3X$Z,W&:OI


MXP\W,\L[>^J%]!K6-4J>U*BE&3V':^[Z*LN5,;I=6/`E-+0<"A>B?\.9'2%I
MU;5A$Q2J,0 $&0 !122%1G4WN(8)%YSK77QL^N[H9F3&QIE*T&0P1;*E(S'N


M*) ,:E>-V_&,''*-N>TTKN5U_E:SW.$7.LSAM8+Q<0Q1S22HR6J".!AW*D+;



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


-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