digitalmars.D.announce - dmd 1.073 and 2.058 release
- Walter Bright (5/5) Feb 14 2012 Anyone care to count up the number of bug fixes here?
- Jonathan M Davis (3/10) Feb 14 2012 You forgot to merge in the changelogs for druntime and Phobos.
- Jonathan M Davis (3/13) Feb 14 2012 And the first bug listed as fixed - 314 - was reopened.
- Walter Bright (3/15) Feb 14 2012 That was removed from the changelog, it's just that the dlang.org hasn't...
- Jonathan M Davis (6/23) Feb 14 2012 Odd. I wouldn't have expected any of it to end up on dlang until the fin...
- Walter Bright (2/6) Feb 14 2012 It does say "upcoming" on dlang.org, so it is the beta changelog.
- Leandro Lucarella (13/30) Feb 15 2012 D1 changelog have it too.
-
Jimmy Cao
(3/3)
Feb 14 2012
2012/2/14 Walter Bright
- Jonathan M Davis (5/6) Feb 14 2012 No. It's in the changelog. It's just that the website hasn't been update...
- Jonathan M Davis (6/13) Feb 14 2012 * Allow 1.userproperty syntax
- Andrei Alexandrescu (6/11) Feb 14 2012 243 bug fixes according to my count. New record. Vote up!
- Walter Bright (2/2) Feb 14 2012 On reddit:
- Bill Baxter (3/5) Feb 14 2012 Where is this odd-sounding beast documented?
- Jacob Carlborg (8/13) Feb 15 2012 Uniform Function Call Syntax. Which basically means you can call free
- deadalnix (2/19) Feb 15 2012 Finally it is in D ! Great ! Awesome !
-
Piotr Szturmaj
(2/6)
Feb 15 2012
Ultimate Fighting Championship of Syntaxes
- Jacob Carlborg (5/10) Feb 14 2012 That's a huge amount of bug fixes. You guys have outdone yourself again,...
- Jonathan M Davis (20/27) Feb 15 2012 Universal Function Call Syntax. The idea is that any function can be cal...
- Jacob Carlborg (5/10) Feb 15 2012 Unfortunately my serialization library Orange doesn't completely work
- Jacob Carlborg (5/15) Feb 16 2012 I finally found the problem. It turned out to be in my code, sorry for
- deadalnix (5/10) Feb 15 2012 I quite disapointed to see array.sort fixed instead of deprecated.
- Andrej Mitrovic (2/7) Feb 15 2012 That doesn't seem to work. So does anyone know what exactly is implement...
- bearophile (5/6) Feb 15 2012 I don't know. See:
- =?UTF-8?B?QWxpIMOHZWhyZWxp?= (14/20) Feb 15 2012 Is UFCS DOA? Here is my experiment:
- Marco Leise (5/29) Feb 16 2012 I'm just repeating what's already been said, but UFCS on classes and =
- simendsjo (6/40) Feb 16 2012 f =
- bearophile (5/7) Feb 16 2012 See:
- F i L (3/7) Feb 16 2012 C#'s had "UFSC" for years without ambiguity problems. Also,
- Jonathan M Davis (3/11) Feb 16 2012 C# doesn't have free functions. So, how could it have UFCS?
- Timon Gehr (2/13) Feb 16 2012 http://msdn.microsoft.com/en-us/library/bb383977.aspx
- Timon Gehr (4/12) Feb 15 2012 Apparently the only thing that is implemented is that float literals now...
- Jonathan M Davis (4/19) Feb 15 2012 Then it sounds like the changelog is in error (though the floating point...
- Piotr Szturmaj (4/9) Feb 15 2012 Great! Keep up good work!
- Dmitry Olshansky (5/16) Feb 16 2012 Nice release!
- Marco Leise (3/20) Feb 16 2012 Now that you say it ... the Makefile patch, the to!float("INF2") fix. We...
- Robert Clipsham (26/31) Feb 15 2012 The following no longer works and is not listed in the changelog:
- Robert McGinley (5/12) Feb 15 2012 More @Andrei Does anyone keep an updated version of "The D Programming =
- Caligo (4/31) Feb 15 2012 float x = 1.f; // GIVES ERROR
- Timon Gehr (2/39) Feb 16 2012 Yes.
- kraybourne (9/14) Feb 16 2012 Awesome! And dat changelog! Fantastic work!
- Jonas Drewsen (4/9) Feb 16 2012 The v2.058 tag in the git repo is missing
- Walter Bright (3/4) Feb 16 2012 git tag
- F i L (4/4) Feb 16 2012 Great work guys! That's a lot of bug fixes.
- Jonas Drewsen (6/10) Feb 16 2012 A git pull didn't work for some reason.
- Jonathan M Davis (3/8) Feb 16 2012 I would think so.
- Andrea Fontana (3/13) Feb 16 2012 Is it trying to call function f(int x) on 1 with new universal
- Nick Sabalausky (3/15) Feb 16 2012 If so, then it *should* be doing the same on 0.f
- Martin Nowak (4/12) Feb 16 2012 Somewhere in the lexer.
- Timon Gehr (3/17) Feb 16 2012 This kind of duplicated control flow seems to be a pervasive problem in
- Stephan (2/7) Feb 22 2012 std.net.curl documentation is missing
Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zip
Feb 14 2012
On Tuesday, February 14, 2012 20:47:27 Walter Bright wrote:Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipYou forgot to merge in the changelogs for druntime and Phobos. - Jonathan M Davis
Feb 14 2012
On Tuesday, February 14, 2012 20:52:23 Jonathan M Davis wrote:On Tuesday, February 14, 2012 20:47:27 Walter Bright wrote:And the first bug listed as fixed - 314 - was reopened. - Jonathan M DavisAnyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipYou forgot to merge in the changelogs for druntime and Phobos.
Feb 14 2012
On 2/14/2012 8:54 PM, Jonathan M Davis wrote:On Tuesday, February 14, 2012 20:52:23 Jonathan M Davis wrote:That was removed from the changelog, it's just that the dlang.org hasn't been synced yet.On Tuesday, February 14, 2012 20:47:27 Walter Bright wrote:And the first bug listed as fixed - 314 - was reopened.Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipYou forgot to merge in the changelogs for druntime and Phobos.
Feb 14 2012
On Tuesday, February 14, 2012 21:08:03 Walter Bright wrote:On 2/14/2012 8:54 PM, Jonathan M Davis wrote:Odd. I wouldn't have expected any of it to end up on dlang until the final release, in which case you shouldn't have issues with the changelog not being up-to-date but still including 2.058. Was it being updated while the betas were out? - Jonathan M DavisOn Tuesday, February 14, 2012 20:52:23 Jonathan M Davis wrote:That was removed from the changelog, it's just that the dlang.org hasn't been synced yet.On Tuesday, February 14, 2012 20:47:27 Walter Bright wrote:And the first bug listed as fixed - 314 - was reopened.Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipYou forgot to merge in the changelogs for druntime and Phobos.
Feb 14 2012
On 2/14/2012 9:19 PM, Jonathan M Davis wrote:Odd. I wouldn't have expected any of it to end up on dlang until the final release, in which case you shouldn't have issues with the changelog not being up-to-date but still including 2.058. Was it being updated while the betas were out?It does say "upcoming" on dlang.org, so it is the beta changelog.
Feb 14 2012
Walter Bright, el 14 de febrero a las 21:08 me escribiste:On 2/14/2012 8:54 PM, Jonathan M Davis wrote:D1 changelog have it too. -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- All fathers are intimidating. They're intimidating because they are fathers. Once a man has children, for the rest of his life, his attitude is, "To hell with the world, I can make my own people. I'll eat whatever I want. I'll wear whatever I want, and I'll create whoever I want." -- Jerry SeinfeldOn Tuesday, February 14, 2012 20:52:23 Jonathan M Davis wrote:That was removed from the changelog, it's just that the dlang.org hasn't been synced yet.On Tuesday, February 14, 2012 20:47:27 Walter Bright wrote:And the first bug listed as fixed - 314 - was reopened.Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipYou forgot to merge in the changelogs for druntime and Phobos.
Feb 15 2012
2012/2/14 Walter Bright <newshound2 digitalmars.com> http://www.digitalmars.com/d/**2.0/changelog.html<http://www.digitalmars.com/d/2.0/changelog.html> Did you forget to mention the new std.net.curl module?
Feb 14 2012
On Wednesday, February 15, 2012 00:02:10 Jimmy Cao wrote:Did you forget to mention the new std.net.curl module?No. It's in the changelog. It's just that the website hasn't been updated yet. It currently lists the partial changelog from the beta, not the full changelog. - Jonathan M Davis
Feb 14 2012
On Tuesday, February 14, 2012 20:47:27 Walter Bright wrote:Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zip* Allow 1.userproperty syntax Was UFCS added in this release? On what level is it supported? Does it now work with _everything_, or is it just all built-in types? Or is it only integers? Or is it only with properties and not functions and not full UFCS? - Jonathan M Davis
Feb 14 2012
On 2/14/12 10:47 PM, Walter Bright wrote:Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zip243 bug fixes according to my count. New record. Vote up! http://www.reddit.com/r/programming/comments/pqft5/d_reference_compiler_2058_is_out_15_new_features/ Congratulations to everyone involved! There has never been such momentum in D's history. Andrei
Feb 14 2012
On reddit: http://www.reddit.com/r/programming/comments/pqft5/d_reference_compiler_2058_is_out_15_new_features/
Feb 14 2012
On Tuesday, February 14, 2012 20:47:27 Walter Bright wrote:* Allow 1.userproperty syntaxWhere is this odd-sounding beast documented? And what is UFCS? --bb
Feb 14 2012
On 2012-02-15 08:38, Bill Baxter wrote:On Tuesday, February 14, 2012 20:47:27 Walter Bright wrote: * Allow 1.userproperty syntax Where is this odd-sounding beast documented? And what is UFCS? --bbUniform Function Call Syntax. Which basically means you can call free functions as they were methods. void foo (int a, int b); foo(1, 2); 1.foo(2); -- /Jacob Carlborg
Feb 15 2012
Le 15/02/2012 09:11, Jacob Carlborg a écrit :On 2012-02-15 08:38, Bill Baxter wrote:Finally it is in D ! Great ! Awesome !On Tuesday, February 14, 2012 20:47:27 Walter Bright wrote: * Allow 1.userproperty syntax Where is this odd-sounding beast documented? And what is UFCS? --bbUniform Function Call Syntax. Which basically means you can call free functions as they were methods. void foo (int a, int b); foo(1, 2); 1.foo(2);
Feb 15 2012
Bill Baxter wrote:On Tuesday, February 14, 2012 20:47:27 Walter Bright wrote: * Allow 1.userproperty syntax Where is this odd-sounding beast documented? And what is UFCS?Ultimate Fighting Championship of Syntaxes <g>
Feb 15 2012
On 2012-02-15 05:47, Walter Bright wrote:Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipThat's a huge amount of bug fixes. You guys have outdone yourself again, impressive. -- /Jacob Carlborg
Feb 14 2012
On Tuesday, February 14, 2012 23:38:33 Bill Baxter wrote:Universal Function Call Syntax. The idea is that any function can be called as if it were a member function. The member function call syntax that arrays have is a version of this but isn't general/universal, whereas _universal_ function call syntax would apply to all types. So, stuff like 1.abs() and 5.max(3) become legal. It also means that you can declare functions which take a class or struct as their first parameter and call them as if they were member functions of that class/struct. But it can introduce ambiguities - especially when dealing with structs or classes which can have member functions of their own. So, there's been some debate as to how it should be implemented - or even _if_ it should be implemented, though the basic idea is fairly popular.On Tuesday, February 14, 2012 20:47:27 Walter Bright wrote: * Allow 1.userproperty syntaxWhere is this odd-sounding beast documented? And what is UFCS?From the sound of it, at least property functions with integers can now beused with UFCS, since at least that level of UFCS is required to declare properties for built-in types. property auto prop(int value) { ... } auto value = 7.prop; But that's just a guess, asthe changelog obviously isn't very descriptive. So, I have no idea what exactly has been implemented for that one line in the changelog - hence my question. - Jonathan M Davis
Feb 15 2012
On 2012-02-15 05:47, Walter Bright wrote:Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipUnfortunately my serialization library Orange doesn't completely work with 2.058. I've already posted about this to the beta mailing list. -- /Jacob Carlborg
Feb 15 2012
On 2012-02-15 09:50, Jacob Carlborg wrote:On 2012-02-15 05:47, Walter Bright wrote:I finally found the problem. It turned out to be in my code, sorry for the noise. -- /Jacob CarlborgAnyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipUnfortunately my serialization library Orange doesn't completely work with 2.058. I've already posted about this to the beta mailing list.
Feb 16 2012
Le 15/02/2012 05:47, Walter Bright a écrit :Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipI quite disapointed to see array.sort fixed instead of deprecated. This method is inferior to std.algorithm.sort, and most of its drawbacks are not fixable. Plus, sorting doesn't belong to the runtime IMO. Great job by the way !
Feb 15 2012
On 2/15/12, Jonathan M Davis <jmdavisProg gmx.com> wrote:property auto prop(int value) { ... } auto value = 7.prop; So, I have no idea what exactly has been implemented for that one line in the changelog - hence my question.That doesn't seem to work. So does anyone know what exactly is implemented?
Feb 15 2012
Andrej Mitrovic:That doesn't seem to work. So does anyone know what exactly is implemented?I don't know. See: https://github.com/D-Programming-Language/dmd/pull/582 Bye, bearophile
Feb 15 2012
On 02/15/2012 07:49 AM, bearophile wrote:Andrej Mitrovic:Is UFCS DOA? Here is my experiment: struct S {} property int foo(S) { return 42; } void main() { auto s = S(); s.foo(); // Error: no property 'foo' for type 'S' } AliThat doesn't seem to work. So does anyone know what exactly is implemented?I don't know. See: https://github.com/D-Programming-Language/dmd/pull/582 Bye, bearophile
Feb 15 2012
Am 15.02.2012, 23:07 Uhr, schrieb Ali =C3=87ehreli <acehreli yahoo.com>:=On 02/15/2012 07:49 AM, bearophile wrote:Andrej Mitrovic:That doesn't seem to work. So does anyone know what exactly is =I'm just repeating what's already been said, but UFCS on classes and = structs has the problem of ambiguities with proper methods of those. If = = 2.058 introduced more UFCS, then it is for literals. Try "123.foo;".Is UFCS DOA? Here is my experiment: struct S {} property int foo(S) { return 42; } void main() { auto s =3D S(); s.foo(); // Error: no property 'foo' for type 'S' } Aliimplemented?I don't know. See: https://github.com/D-Programming-Language/dmd/pull/582 Bye, bearophile
Feb 16 2012
On Thu, 16 Feb 2012 14:45:46 +0100, Marco Leise <Marco.Leise gmx.de> wro= te:Am 15.02.2012, 23:07 Uhr, schrieb Ali =C3=87ehreli <acehreli yahoo.com= :On 02/15/2012 07:49 AM, bearophile wrote:Andrej Mitrovic:That doesn't seem to work. So does anyone know what exactly is =I'm just repeating what's already been said, but UFCS on classes and =Is UFCS DOA? Here is my experiment: struct S {} property int foo(S) { return 42; } void main() { auto s =3D S(); s.foo(); // Error: no property 'foo' for type 'S' } Aliimplemented?I don't know. See: https://github.com/D-Programming-Language/dmd/pull/582 Bye, bearophilestructs has the problem of ambiguities with proper methods of those. I=f =2.058 introduced more UFCS, then it is for literals. Try "123.foo;".I thought floating point literals should change so 0 is required. No mor= e = .0 or 0. .
Feb 16 2012
simendsjo:I thought floating point literals should change so 0 is required. No more .0 or 0. .See: http://d.puremagic.com/issues/show_bug.cgi?id=6277 Bye, bearophile
Feb 16 2012
Marco Leise wrote:I'm just repeating what's already been said, but UFCS on classes and structs has the problem of ambiguities with proper methods of those. If 2.058 introduced more UFCS, then it is for literals. Try "123.foo;"."123.foo;" doesn't work.
Feb 16 2012
On Thursday, February 16, 2012 15:27:26 F i L wrote:Marco Leise wrote:- Jonathan M DavisI'm just repeating what's already been said, but UFCS on classes and structs has the problem of ambiguities with proper methods of those. If 2.058 introduced more UFCS, then it is for literals. Try "123.foo;"."123.foo;" doesn't work.
Feb 16 2012
On 02/16/2012 08:05 PM, Jonathan M Davis wrote:On Thursday, February 16, 2012 15:27:26 F i L wrote:http://msdn.microsoft.com/en-us/library/bb383977.aspxMarco Leise wrote:- Jonathan M DavisI'm just repeating what's already been said, but UFCS on classes and structs has the problem of ambiguities with proper methods of those. If 2.058 introduced more UFCS, then it is for literals. Try "123.foo;"."123.foo;" doesn't work.
Feb 16 2012
On 02/15/2012 01:45 PM, Andrej Mitrovic wrote:On 2/15/12, Jonathan M Davis<jmdavisProg gmx.com> wrote:Apparently the only thing that is implemented is that float literals now require [0-9] after the decimal point. That means 1.f and 1.Li will be tokenized as [1][.][f] and [1][.][Li].property auto prop(int value) { ... } auto value = 7.prop; So, I have no idea what exactly has been implemented for that one line in the changelog - hence my question.That doesn't seem to work. So does anyone know what exactly is implemented?
Feb 15 2012
On Wednesday, February 15, 2012 23:52:54 Timon Gehr wrote:On 02/15/2012 01:45 PM, Andrej Mitrovic wrote:Then it sounds like the changelog is in error (though the floating point literal thing is a very good change in its own right). - Jonathan M DavisOn 2/15/12, Jonathan M Davis<jmdavisProg gmx.com> wrote:Apparently the only thing that is implemented is that float literals now require [0-9] after the decimal point. That means 1.f and 1.Li will be tokenized as [1][.][f] and [1][.][Li].property auto prop(int value) { ... } auto value = 7.prop; So, I have no idea what exactly has been implemented for that one line in the changelog - hence my question.That doesn't seem to work. So does anyone know what exactly is implemented?
Feb 15 2012
Walter Bright wrote:Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipGreat! Keep up good work! One note thought: I see that there are some new features borrowed from 2.057 log. Is this on purpose or an oversight?
Feb 15 2012
On 15.02.2012 17:21, Piotr Szturmaj wrote:Walter Bright wrote:Nice release! Though I see that the library bugs section is almost identical to 2.057 O_o -- Dmitry OlshanskyAnyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipGreat! Keep up good work! One note thought: I see that there are some new features borrowed from 2.057 log. Is this on purpose or an oversight?
Feb 16 2012
Am 16.02.2012, 10:11 Uhr, schrieb Dmitry Olshansky <dmitry.olsh gmail.com>:On 15.02.2012 17:21, Piotr Szturmaj wrote:Now that you say it ... the Makefile patch, the to!float("INF2") fix. We should run a diff before counting ;)Walter Bright wrote:Nice release! Though I see that the library bugs section is almost identical to 2.057 O_oAnyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipGreat! Keep up good work! One note thought: I see that there are some new features borrowed from 2.057 log. Is this on purpose or an oversight?
Feb 16 2012
On 15/02/2012 04:47, Walter Bright wrote:Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipThe following no longer works and is not listed in the changelog: ---- void foo(T...)(T) { } void main() { foo((string, string a){ // Do something }); } ---- It now gives: ---- test.d(1): Error: cannot have parameter of type void test.d(1): Error: variable test.foo!(void).foo._param_0 voids have no value test.d(7): Error: template instance test.foo!(void) error instantiating test.d(7): Error: template test.foo(T...) cannot deduce template function from argument types !()(void) ---- I assume that this is intentional from my following of dmd commits, the breaking change should be listed though. -- Robert http://octarineparrot.com/
Feb 15 2012
More Andrei Does anyone keep an updated version of "The D Programming = Language" as changes are made? I don't know what your publishing = agreement was like but could you keep the text of the book in say = github. =20 On Feb 14, 2012, at 11:47 PM, Walter Bright wrote:Anyone care to count up the number of bug fixes here? =20 http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip =20 http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zip
Feb 15 2012
On Wed, Feb 15, 2012 at 2:26 AM, Jonathan M Davis <jmdavisProg gmx.com> wrote:On Tuesday, February 14, 2012 23:38:33 Bill Baxter wrote:float x = 1.f; // GIVES ERROR float y = 0.f; // OK what's up with that? Is that a bug?Universal Function Call Syntax. The idea is that any function can be called as if it were a member function. The member function call syntax that arrays have is a version of this but isn't general/universal, whereas _universal_ function call syntax would apply to all types. So, stuff like 1.abs() and 5.max(3) become legal. It also means that you can declare functions which take a class or struct as their first parameter and call them as if they were member functions of that class/struct. But it can introduce ambiguities - especially when dealing with structs or classes which can have member functions of their own. So, there's been some debate as to how it should be implemented - or even _if_ it should be implemented, though the basic idea is fairly popular. From the sound of it, at least property functions with integers can now be used with UFCS, since at least that level of UFCS is required to declare properties for built-in types. property auto prop(int value) { ... } auto value = 7.prop; But that's just a guess, asthe changelog obviously isn't very descriptive. So, I have no idea what exactly has been implemented for that one line in the changelog - hence my question. - Jonathan M DavisOn Tuesday, February 14, 2012 20:47:27 Walter Bright wrote: * Allow 1.userproperty syntaxWhere is this odd-sounding beast documented? And what is UFCS?
Feb 15 2012
On 02/16/2012 07:10 AM, Caligo wrote:On Wed, Feb 15, 2012 at 2:26 AM, Jonathan M Davis<jmdavisProg gmx.com> wrote:Yes.On Tuesday, February 14, 2012 23:38:33 Bill Baxter wrote:float x = 1.f; // GIVES ERROR float y = 0.f; // OK what's up with that? Is that a bug?Universal Function Call Syntax. The idea is that any function can be called as if it were a member function. The member function call syntax that arrays have is a version of this but isn't general/universal, whereas _universal_ function call syntax would apply to all types. So, stuff like 1.abs() and 5.max(3) become legal. It also means that you can declare functions which take a class or struct as their first parameter and call them as if they were member functions of that class/struct. But it can introduce ambiguities - especially when dealing with structs or classes which can have member functions of their own. So, there's been some debate as to how it should be implemented - or even _if_ it should be implemented, though the basic idea is fairly popular. From the sound of it, at least property functions with integers can now be used with UFCS, since at least that level of UFCS is required to declare properties for built-in types. property auto prop(int value) { ... } auto value = 7.prop; But that's just a guess, asthe changelog obviously isn't very descriptive. So, I have no idea what exactly has been implemented for that one line in the changelog - hence my question. - Jonathan M DavisOn Tuesday, February 14, 2012 20:47:27 Walter Bright wrote: * Allow 1.userproperty syntaxWhere is this odd-sounding beast documented? And what is UFCS?
Feb 16 2012
On 2/15/12 5:47 AM, Walter Bright wrote:Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipAwesome! And dat changelog! Fantastic work! I get the feeling with this release D is taking a new direction?! I like it! This is also one of the few D2 releases where my modest pile of existing code just continues to work. Like, I don't know what to do now, just continue to code? like nothing happened?! Teh humanity! :) Labambda! thanks /krbrn
Feb 16 2012
On Wednesday, 15 February 2012 at 04:47:27 UTC, Walter Bright wrote:Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipThe v2.058 tag in the git repo is missing /Jonas
Feb 16 2012
On 2/16/2012 1:00 AM, Jonas Drewsen wrote:The v2.058 tag in the git repo is missinggit tag shows it's there.
Feb 16 2012
Great work guys! That's a lot of bug fixes. I was completely excited about UFCS when I read it had been implemented, but it doesn't seem to work. What has it been implemented for exactly?
Feb 16 2012
On Thursday, 16 February 2012 at 10:08:31 UTC, Walter Bright wrote:On 2/16/2012 1:00 AM, Jonas Drewsen wrote:A git pull didn't work for some reason. I had to do a "git fetch upstream tag v2.058" to see it. Weird. Thx JonasThe v2.058 tag in the git repo is missinggit tag shows it's there.
Feb 16 2012
On Thursday, February 16, 2012 00:10:20 Caligo wrote:float x = 1.f; // GIVES ERROR float y = 0.f; // OK what's up with that? Is that a bug?I would think so. - Jonathan M Davis
Feb 16 2012
Is it trying to call function f(int x) on 1 with new universal syntax? :) Il giorno gio, 16/02/2012 alle 01.29 -0800, Jonathan M Davis ha scritto:On Thursday, February 16, 2012 00:10:20 Caligo wrote:float x =3D 1.f; // GIVES ERROR =20 float y =3D 0.f; // OK =20 what's up with that? Is that a bug?=20 I would think so. =20 - Jonathan M Davis
Feb 16 2012
"Andrea Fontana" <advmail katamail.com> wrote in message news:1329390651.2167.3.camel ububox...Il giorno gio, 16/02/2012 alle 01.29 -0800, Jonathan M Davis ha scritto:If so, then it *should* be doing the same on 0.fOn Thursday, February 16, 2012 00:10:20 Caligo wrote:Is it trying to call function f(int x) on 1 with new universal syntax? :)float x = 1.f; // GIVES ERROR float y = 0.f; // OK what's up with that? Is that a bug?I would think so.
Feb 16 2012
On Thu, 16 Feb 2012 10:29:55 +0100, Jonathan M Davis <jmdavisProg gmx.com> wrote:On Thursday, February 16, 2012 00:10:20 Caligo wrote:Somewhere in the lexer. Numbers starting with 0 have a different control flow because of 0x and 0b.float x = 1.f; // GIVES ERROR float y = 0.f; // OK what's up with that? Is that a bug?I would think so. - Jonathan M Davis
Feb 16 2012
On 02/16/2012 08:37 PM, Martin Nowak wrote:On Thu, 16 Feb 2012 10:29:55 +0100, Jonathan M Davis <jmdavisProg gmx.com> wrote:This kind of duplicated control flow seems to be a pervasive problem in DMDs lexer and parser, making hacking on them a nightmare.On Thursday, February 16, 2012 00:10:20 Caligo wrote:Somewhere in the lexer. Numbers starting with 0 have a different control flow because of 0x and 0b.float x = 1.f; // GIVES ERROR float y = 0.f; // OK what's up with that? Is that a bug?I would think so. - Jonathan M Davis
Feb 16 2012
On 15.02.2012 05:47, Walter Bright wrote:Anyone care to count up the number of bug fixes here? http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.073.zip http://www.digitalmars.com/d/2.0/changelog.html https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zipstd.net.curl documentation is missing
Feb 22 2012