digitalmars.D - D 2.0
- Arth Lloyd Flores (3/3) Jul 24 2010 Is D 2.0 still in alpha?
- Trass3r (1/2) Jul 24 2010 It's in beta. Somewhat.
- Arth Lloyd Flores (27/30) Jul 24 2010 --e0cb4e8878e3546e4c048c2c3f56
- BCS (4/8) Jul 24 2010 The language? More like an RC. DMD? Beta.
- Peter Alexander (5/11) Jul 25 2010 And Phobos, I'd say, is still in alpha. Half the simple stuff in there
- levenshtein (2/17) Jul 25 2010 At least it doesn't have any license issues.
- Trass3r (5/6) Jul 25 2010 Well typedef is to be removed, delete has pretty much been deprecated as...
- bearophile (8/11) Jul 25 2010 The Scope!() replacement for scope is not good enough yet:
- Andrei Alexandrescu (7/20) Jul 25 2010 The issue is that the scope keyword is impossible to check against
- Tomek =?UTF-8?B?U293acWEc2tp?= (2/3) Jul 25 2010 But scope(exit) stays, right?
- BCS (4/10) Jul 25 2010 Totally different thing. :)
- Tomek =?UTF-8?B?U293acWEc2tp?= (2/12) Jul 25 2010 Phew.. He did say "it doesn't deserve a keyword" so I got scared ;)
- Olivier Pisano (5/13) Jul 25 2010 I must admit I had the same reaction as Tomek while reading Andrei's
- Michael Rynn (33/40) Jul 28 2010 In D2.0 I like the scope storage for optionally allocating a class on th...
--e0cb4e8878e3546e4c048c2c3f56 Content-Type: text/plain; charset=ISO-8859-1 Nice one.. Thanks for the reply Trass3r... I'm so excited [?] On Sun, Jul 25, 2010 at 9:24 AM, Trass3r <un known.com> wrote:Is D 2.0 still in alpha?-- -Arth --e0cb4e8878e3546e4c048c2c3f56 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable excited=A0<img src=3D"cid:360 goomoji.gmail" style=3D"margin-top: 0px; mar= gin-right: 0.2ex; margin-bottom: 0px; margin-left: 0.2ex; vertical-align: m= iddle; " goomoji=3D"360"><br> <br><div class=3D"gmail_quote">On Sun, Jul 25, 2010 at 9:24 AM, Trass3r <sp= an dir=3D"ltr"><<a href=3D"mailto:un known.com">un known.com</a>></sp= an> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;= border-left:1px #ccc solid;padding-left:1ex;"> <div class=3D"im"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .= 8ex;border-left:1px #ccc solid;padding-left:1ex"> Is D 2.0 still in alpha?<br> </blockquote> <br></div> </blockquote></div><br><br clear=3D"all"><br>-- <br>-Arth<br> </div> --e0cb4e8878e3546e4c048c2c3f56--It's in beta. Somewhat.
Jul 24 2010
Hello Trass3r,The language? More like an RC. DMD? Beta. -- ... <IXOYE><Is D 2.0 still in alpha?It's in beta. Somewhat.
Jul 24 2010
On 25/07/10 5:21 AM, BCS wrote:Hello Trass3r,And Phobos, I'd say, is still in alpha. Half the simple stuff in there doesn't work, never mind anything that's complex. e.g. Array!int causes a compile error, and most ranges that are meant to be forward ranges, aren't.The language? More like an RC. DMD? Beta.Is D 2.0 still in alpha?It's in beta. Somewhat.
Jul 25 2010
Peter Alexander Wrote:On 25/07/10 5:21 AM, BCS wrote:At least it doesn't have any license issues.Hello Trass3r,And Phobos, I'd say, is still in alpha. Half the simple stuff in there doesn't work, never mind anything that's complex. e.g. Array!int causes a compile error, and most ranges that are meant to be forward ranges, aren't.The language? More like an RC. DMD? Beta.Is D 2.0 still in alpha?It's in beta. Somewhat.
Jul 25 2010
The language? More like an RC.Well typedef is to be removed, delete has pretty much been deprecated as I heard. Now they seem to intend to remove scope too (didn't read the topic thoroughly though, I'm sick of all those "remove every single keyword there is in the language" threads)
Jul 25 2010
Trass3r:Now they seem to intend to remove scope too (didn't read the topic thoroughly though, I'm sick of all those "remove every single keyword there is in the language" threads)The Scope!() replacement for scope is not good enough yet: 1) The compiler doesn't test for escapes (as dmd currently naively does for scoped objects); 2) There is no way to denote a class that must be scoped; 3) There is this problem: http://d.puremagic.com/issues/show_bug.cgi?id=4500 I think Andrei's (wrong) strategy is to remove things first, and then try to invent ways to patch the holes left by the removed stuff. So far the idea of removing scope is a failure, it produces more problems than it solves. Bye, bearophile
Jul 25 2010
On 07/25/2010 08:22 AM, bearophile wrote:Trass3r:The issue is that the scope keyword is impossible to check against escapes without extra additions to the language (e.g. marking a method or a function parameter as scoped). Such an uncheckable pattern is best left to a library feature, it doesn't deserve a keyword. I agree that scoped() has weaknesses that should be looked into, but scope must go. AndreiNow they seem to intend to remove scope too (didn't read the topic thoroughly though, I'm sick of all those "remove every single keyword there is in the language" threads)The Scope!() replacement for scope is not good enough yet: 1) The compiler doesn't test for escapes (as dmd currently naively does for scoped objects); 2) There is no way to denote a class that must be scoped; 3) There is this problem: http://d.puremagic.com/issues/show_bug.cgi?id=4500 I think Andrei's (wrong) strategy is to remove things first, and then try to invent ways to patch the holes left by the removed stuff. So far the idea of removing scope is a failure, it produces more problems than it solves.
Jul 25 2010
Andrei Alexandrescu wrote:but scope must goBut scope(exit) stays, right?
Jul 25 2010
Hello Tomek,Andrei Alexandrescu wrote:Totally different thing. :) -- ... <IXOYE><but scope must goBut scope(exit) stays, right?
Jul 25 2010
BCS wrote:Hello Tomek,Phew.. He did say "it doesn't deserve a keyword" so I got scared ;)Andrei Alexandrescu wrote:Totally different thing. :)but scope must goBut scope(exit) stays, right?
Jul 25 2010
Le 25/07/2010 22:40, BCS a écrit :Hello Tomek,I must admit I had the same reaction as Tomek while reading Andrei's post :) I am relieved scope (exit|failure|success) is not on the removal list. OlivierAndrei Alexandrescu wrote:Totally different thing. :)but scope must goBut scope(exit) stays, right?
Jul 25 2010
The issue is that the scope keyword is impossible to check against escapes without extra additions to the language (e.g. marking a method or a function parameter as scoped). Such an uncheckable pattern is best left to a library feature, it doesn't deserve a keyword. I agree that scoped() has weaknesses that should be looked into, but scope must go. AndreiIn D2.0 I like the scope storage for optionally allocating a class on the stack, and found a use for it. The class was specially designed to be aware of its storage status. class FlexyStore { ... bool isScoped_; ... If its not going to be a key word, I would still like to have the facility optimized, and if allocating a class on the stack is out, I would redesign and use a struct. Not all patterns may be fully checkable at compile time. Might as well ask if any particular program halts. Use with caution. A language is not complete if you cannot hang yourself with it. I did not like putting this as a class property. scope class RigidStore { } I have difficulty finding online any clear statement of intent, rationale, extent, probability or time frame of removal of the keyword. We must be still in the experimental can do everything with templates phase. There are hints on the news group, but an update central documentation of future directions. For instance there is a "Future Directions" URL in the sidebar menu that has not changed for years, mentions template inheritance, array operations, without details. At face value its very un- impressive, looks like a web page that was bookmarked and then never worked on. There is a more comprehensive D2.0 enhancements, that describes Core language changes, but does not mention scope storage. It would be good as a community to have the changers publish, explain rumours of oncoming changes better. External communication should explicate some things, since the internal brain modules of our changes are pressured to communicate and think more, and I can adjust my future expectations. Michael.
Jul 28 2010