www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dtl - DTL 0.2

reply "Matthew" <admin stlsoft.dot.dot.dot.dot.org> writes:
Available at: http://www.synsoft.org/d/code/dtl_0_2_1.zip

Things done:

 - D-like syntax for templates. (Less of the C++ influence <g>)
 - renamed collect() => transform()
 - renamed x_with() => xWith(), e.g. max_with() => maxWith()
 - added detect() to List
 - Rudimentary Set class (uses a T[int] assoc array)
 - a few more test programs, testing a few more bits of the picture
 - I think that containers will be able to derive from parameterisable
interfaces, e.g. IContainer!(int), but have not
yet got round to testing this much

Hopefully 0.3 should be around soon, as there were plenty of none-too-difficult
things I'd wanted to 0.2 that slipped my
time this week.

Let me know ...
Aug 21 2004
parent reply Brad Beveridge <brad.beveridge somewhere.com> writes:
Matthew wrote:

 Available at: http://www.synsoft.org/d/code/dtl_0_2_1.zip
 
 Things done:
 
  - D-like syntax for templates. (Less of the C++ influence <g>)
  - renamed collect() => transform()
  - renamed x_with() => xWith(), e.g. max_with() => maxWith()
  - added detect() to List
  - Rudimentary Set class (uses a T[int] assoc array)
  - a few more test programs, testing a few more bits of the picture
  - I think that containers will be able to derive from parameterisable
  interfaces, e.g. IContainer!(int), but have not
 yet got round to testing this much
 
 Hopefully 0.3 should be around soon, as there were plenty of
 none-too-difficult things I'd wanted to 0.2 that slipped my time this
 week.
 
 Let me know ...
I'm missing std/type/traits.d, is this a linux thing? I've just grabbed the latest DMD and the file still isn't anywhere. Thoughts? Cheers Brad
Sep 01 2004
next sibling parent Gold Dragon <dragonwing dragonu.net> writes:
Post in the D newsgroup, unless you already did. I tried to find it too but I
think it was said that 
it is in the std.linux.linux file instead. Been a long time so I forget.


Brad Beveridge wrote:
 Matthew wrote:
 
 
Available at: http://www.synsoft.org/d/code/dtl_0_2_1.zip

Things done:

 - D-like syntax for templates. (Less of the C++ influence <g>)
 - renamed collect() => transform()
 - renamed x_with() => xWith(), e.g. max_with() => maxWith()
 - added detect() to List
 - Rudimentary Set class (uses a T[int] assoc array)
 - a few more test programs, testing a few more bits of the picture
 - I think that containers will be able to derive from parameterisable
 interfaces, e.g. IContainer!(int), but have not
yet got round to testing this much

Hopefully 0.3 should be around soon, as there were plenty of
none-too-difficult things I'd wanted to 0.2 that slipped my time this
week.

Let me know ...
I'm missing std/type/traits.d, is this a linux thing? I've just grabbed the latest DMD and the file still isn't anywhere. Thoughts? Cheers Brad
Sep 01 2004
prev sibling parent reply "Matthew" <admin.hat stlsoft.dot.org> writes:
Gah!

Here it is.

Sorry about that.


"Brad Beveridge" <brad.beveridge somewhere.com> wrote in message
news:ch4295$1vr8$1 digitaldaemon.com...
 Matthew wrote:

 Available at: http://www.synsoft.org/d/code/dtl_0_2_1.zip

 Things done:

  - D-like syntax for templates. (Less of the C++ influence <g>)
  - renamed collect() => transform()
  - renamed x_with() => xWith(), e.g. max_with() => maxWith()
  - added detect() to List
  - Rudimentary Set class (uses a T[int] assoc array)
  - a few more test programs, testing a few more bits of the picture
  - I think that containers will be able to derive from parameterisable
  interfaces, e.g. IContainer!(int), but have not
 yet got round to testing this much

 Hopefully 0.3 should be around soon, as there were plenty of
 none-too-difficult things I'd wanted to 0.2 that slipped my time this
 week.

 Let me know ...
I'm missing std/type/traits.d, is this a linux thing? I've just grabbed the latest DMD and the file still isn't anywhere. Thoughts? Cheers Brad
begin 666 traits.d M+RH +R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\-"B J($9I;&4Z M(" (" (" :'1T<#HO+W=W=RYS>6YE<VES+F-O;2YA=2]S;V9T=V%R90T* M:61E9" G87,M:7,G+"!W:71H;W5T(&%N>2!E>'!R97-S(&]R(&EM<&QI960 M(&AE;&0 ;&EA8FQE(&9O<B!A;GD 9&%M86=E<R!A<FES:6YG(&9R;VT =&AE M(&ES(&=R86YT960 =&\ 86YY;VYE('1O('5S92!T:&ES('-O9G1W87)E(&9O M<B!A;GD <'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&)O;VP 7VES36%X5F%L=64H5"!V86QU92D-"GL-" ER971U M<TUI;E9A;'5E*%0I('L 8F]O;"!?:7--:6Y686QU92A4('9A;'5E*0T*>PT* M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O M=F%L=64I"0E["7)E='5R;B!?:7--87A686QU92$H8FET*2AV86QU92D["7T- M"F)O;VP :7--87A686QU92AB>71E('9A;'5E*0D)>PER971U<FX 7VES36%X M5F%L=64A*&)Y=&4I*'9A;'5E*3L)?0T*8F]O;"!I<TUA>%9A;'5E*'5B>71E M('9A;'5E*0E["7)E='5R;B!?:7--87A686QU92$H=6)Y=&4I*'9A;'5E*3L) M?0T*8F]O;"!I<TUA>%9A;'5E*'-H;W)T('9A;'5E*0E["7)E='5R;B!?:7-- M87A686QU92$H<VAO<G0I*'9A;'5E*3L)?0T*8F]O;"!I<TUA>%9A;'5E*'5S M:&]R="!V86QU92D)>PER971U<FX 7VES36%X5F%L=64A*'5S:&]R="DH=F%L M=6EN="!V86QU92D)"7L)<F5T=7)N(%]I<TUA>%9A;'5E(2AU:6YT*2AV86QU M92D["7T-"F)O;VP :7--87A686QU92AL;VYG('9A;'5E*0D)>PER971U<FX M7VES36%X5F%L=64A*&QO;F<I*'9A;'5E*3L)?0T*8F]O;"!I<TUA>%9A;'5E M*'5L;VYG('9A;'5E*0E["7)E='5R;B!?:7--87A686QU92$H=6QO;F<I*'9A M"7)E='5R;B!F86QS93L-"GT-" T*8F]O;"!I<TUI;E9A;'5E*&)I="!V86QU M92D)"7L)<F5T=7)N(%]I<TUI;E9A;'5E(2AB:70I*'9A;'5E*3L)?0T*8F]O M;"!I<TUI;E9A;'5E*&)Y=&4 =F%L=64I"0E["7)E='5R;B!?:7--:6Y686QU M;V]L(&ES36EN5F%L=64H<VAO<G0 =F%L=64I"7L)<F5T=7)N(%]I<TUI;E9A M('9A;'5E*0E["7)E='5R;B!?:7--:6Y686QU92$H=7-H;W)T*2AV86QU92D[ M"7T-"F)O;VP :7--:6Y686QU92AI;G0 =F%L=64I"0E["7)E='5R;B!?:7-- M:6Y686QU92$H:6YT*2AV86QU92D["7T-"F)O;VP :7--:6Y686QU92AU:6YT M('9A;'5E*0D)>PER971U<FX 7VES36EN5F%L=64A*'5I;G0I*'9A;'5E*3L) M?0T*8F]O;"!I<TUI;E9A;'5E*&QO;F< =F%L=64I"0E["7)E='5R;B!?:7-- M;F< =F%L=64I"7L)<F5T=7)N(%]I<TUI;E9A;'5E(2AU;&]N9RDH=F%L=64I M;'5E*&)I="!V86QU92D)"7L)<F5T=7)N(%]I<U9A;'5E(2AB:70L(&UI;BDH M=F%L=64I.PD)?0T*8F]O;"!I<TUI;E9A;'5E*&)Y=&4 =F%L=64I"0E["7)E M36EN5F%L=64H=6)Y=&4 =F%L=64I"7L)<F5T=7)N(%]I<U9A;'5E(2AU8GET M92P ;6EN*2AV86QU92D["7T-"F)O;VP :7--:6Y686QU92AS:&]R="!V86QU M92D)>PER971U<FX 7VES5F%L=64A*'-H;W)T+"!M:6XI*'9A;'5E*3L)?0T* M8F]O;"!I<TUI;E9A;'5E*'5S:&]R="!V86QU92D)>PER971U<FX 7VES5F%L M=64A*'5S:&]R="P ;6EN*2AV86QU92D["7T-"F)O;VP :7--:6Y686QU92AI M;G0 =F%L=64I"0E["7)E='5R;B!?:7-686QU92$H:6YT+"!M:6XI*'9A;'5E M*3L)"7T-"F)O;VP :7--:6Y686QU92AU:6YT('9A;'5E*0D)>PER971U<FX M7VES5F%L=64A*'5I;G0L(&UI;BDH=F%L=64I.PD)?0T*8F]O;"!I<TUI;E9A M;'5E*&QO;F< =F%L=64I"0E["7)E='5R;B!?:7-686QU92$H;&]N9RP ;6EN M<F5T=7)N(%]I<U9A;'5E(2AU;&]N9RP ;6EN*2AV86QU92D["7T-" T*8F]O M;"!I<TUI;E9A;'5E*$]B:F5C="!V86QU92D-"GL-" ER971U<FX 9F%L<V4[ M;W)M36EX:6XH86QI87, =&5M<&QA=&5.86UE+"!R9714>7!E*0T*>PT*(" M(')E=%1Y<&4 ='A&;BAB:70 =F%L=64I(" ("![(" <F5T=7)N('1E;7!L M871E3F%M92$H8FET*2AV86QU92D[(" (" ('T-"B ("!R9714>7!E('1X M1FXH8GET92!V86QU92D (" >R (')E='5R;B!T96UP;&%T94YA;64A*&)Y M;'5E*2 ('L ("!R971U<FX =&5M<&QA=&5.86UE(2AU8GET92DH=F%L=64I M.R (" ?0T*(" (')E=%1Y<&4 ='A&;BAS:&]R="!V86QU92D ("![(" M<F5T=7)N('1E;7!L871E3F%M92$H<VAO<G0I*'9A;'5E*3L (" ('T-"B M("!R9714>7!E('1X1FXH=7-H;W)T('9A;'5E*2 >R (')E='5R;B!T96UP M>$9N*&EN="!V86QU92D (" ('L ("!R971U<FX =&5M<&QA=&5.86UE(2AI M;G0I*'9A;'5E*3L (" (" ?0T*(" (')E=%1Y<&4 ='A&;BAU:6YT('9A M;'5E*2 ("![(" <F5T=7)N('1E;7!L871E3F%M92$H=6EN="DH=F%L=64I M.R (" ('T-"B ("!R9714>7!E('1X1FXH;&]N9R!V86QU92D (" >R M(" <F5T5'EP92!T>$9N*'5L;VYG('9A;'5E*2 ('L ("!R971U<FX =&5M M<&QA=&5.86UE(2AU;&]N9RDH=F%L=64I.R (" ?0T*(" (')E=%1Y<&4 M='A&;BAC:&%R('9A;'5E*2 ("![(" <F5T=7)N('1E;7!L871E3F%M92$H M8VAA<BDH=F%L=64I.R (" ('T-"GT-" T*<')I=F%T92!T96UP;&%T92!? M:7--:6Y686QU92A4*2![(&)O;VP 7VES36EN5F%L=64H5"!V86QU92D-"GL- M<&QA=&4 7VES36%X5F%L=64H5"D >R!B;V]L(%]I<TUA>%9A;'5E*%0 =F%L M<R!"=6EL=&EN5')A;G-F;W)M36EX:6XA*%]I<TUI;E9A;'5E+"!B;V]L*2YT M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R J ` end
Sep 01 2004
parent reply Brad Beveridge <brad.beveridge somewhere.com> writes:
Thanks!  Also, I think a small (one page) doc on what containers are in DTL
and some general usage would help.  I've had a look at the code - but the
less initial effort that one needs to put in to use a library, the better.

Cheers
Brad

Matthew wrote:

 Gah!
 
 Here it is.
 
 Sorry about that.
 
 
 "Brad Beveridge" <brad.beveridge somewhere.com> wrote in message
 news:ch4295$1vr8$1 digitaldaemon.com...
 Matthew wrote:

 Available at: http://www.synsoft.org/d/code/dtl_0_2_1.zip

 Things done:

  - D-like syntax for templates. (Less of the C++ influence <g>)
  - renamed collect() => transform()
  - renamed x_with() => xWith(), e.g. max_with() => maxWith()
  - added detect() to List
  - Rudimentary Set class (uses a T[int] assoc array)
  - a few more test programs, testing a few more bits of the picture
  - I think that containers will be able to derive from parameterisable
  interfaces, e.g. IContainer!(int), but have not
 yet got round to testing this much

 Hopefully 0.3 should be around soon, as there were plenty of
 none-too-difficult things I'd wanted to 0.2 that slipped my time this
 week.

 Let me know ...
I'm missing std/type/traits.d, is this a linux thing? I've just grabbed the latest DMD and the file still isn't anywhere. Thoughts? Cheers Brad
Sep 02 2004
parent "Matthew" <admin.hat stlsoft.dot.org> writes:
Understood.

I'm hoping to get 0.3 done in the next few days, and will try and do a bit of
documentation to accompany it.

Thanks for the feedback.

Cheers

Matthew

"Brad Beveridge" <brad.beveridge somewhere.com> wrote in message
news:ch6sqq$81a$1 digitaldaemon.com...
 Thanks!  Also, I think a small (one page) doc on what containers are in DTL
 and some general usage would help.  I've had a look at the code - but the
 less initial effort that one needs to put in to use a library, the better.

 Cheers
 Brad

 Matthew wrote:

 Gah!

 Here it is.

 Sorry about that.


 "Brad Beveridge" <brad.beveridge somewhere.com> wrote in message
 news:ch4295$1vr8$1 digitaldaemon.com...
 Matthew wrote:

 Available at: http://www.synsoft.org/d/code/dtl_0_2_1.zip

 Things done:

  - D-like syntax for templates. (Less of the C++ influence <g>)
  - renamed collect() => transform()
  - renamed x_with() => xWith(), e.g. max_with() => maxWith()
  - added detect() to List
  - Rudimentary Set class (uses a T[int] assoc array)
  - a few more test programs, testing a few more bits of the picture
  - I think that containers will be able to derive from parameterisable
  interfaces, e.g. IContainer!(int), but have not
 yet got round to testing this much

 Hopefully 0.3 should be around soon, as there were plenty of
 none-too-difficult things I'd wanted to 0.2 that slipped my time this
 week.

 Let me know ...
I'm missing std/type/traits.d, is this a linux thing? I've just grabbed the latest DMD and the file still isn't anywhere. Thoughts? Cheers Brad
Sep 02 2004