Re: Vibe.d 0.7.4 release

2012-06-03 Thread simendsjo
On Sun, 03 Jun 2012 18:43:28 +0200, Sönke Ludwig slud...@outerproduct.org wrote: - mysql-native: native port of a MySQL client driver that Steve Teale has written some time ago - this one could use a maintainer who is actually using MySQL... I have started a cleanup branch:

Re: Vibe.d 0.7.4 release

2012-06-03 Thread Nick Sabalausky
Sönke Ludwig slud...@outerproduct.org wrote in message news:jqg47l$qem$1...@digitalmars.com... Version 0.7.4 is a larger release after some releases that were mostly for bugfixing and performance tuning. There have been a lot of improvements and fixes since the first release in april. The

Re: Donations

2012-06-03 Thread David Nadlinger
On Saturday, 2 June 2012 at 17:37:46 UTC, Russel Winder wrote: On Sat, 2012-06-02 at 13:44 +0200, Jacob Carlborg wrote: http://digitalmars.com/gift/index.html The second one with the 4 Macroscopic Maxwell Equations, perhaps ought to be replaced with one using the far more sophisticated

Re: Donations

2012-06-03 Thread Jonas Drewsen
On Saturday, 2 June 2012 at 18:30:50 UTC, Walter Bright wrote: On 6/2/2012 4:42 AM, Jacob Carlborg wrote: On Saturday, 2 June 2012 at 11:22:16 UTC, Oleg wrote: Hello everybody, i am interesting about D language, and i think many programmers would like to advance in popularity D language, can

Re: Donations

2012-06-03 Thread Russel Winder
On Sun, 2012-06-03 at 09:42 +0200, David Nadlinger wrote: On Saturday, 2 June 2012 at 17:37:46 UTC, Russel Winder wrote: On Sat, 2012-06-02 at 13:44 +0200, Jacob Carlborg wrote: http://digitalmars.com/gift/index.html The second one with the 4 Macroscopic Maxwell Equations, perhaps

Re: Donations

2012-06-03 Thread Walter Bright
On 6/2/2012 6:59 AM, Russel Winder wrote: On Sat, 2012-06-02 at 13:44 +0200, Jacob Carlborg wrote: http://digitalmars.com/gift/index.html The second one with the 4 Macroscopic Maxwell Equations, perhaps ought to be replaced with one using the far more sophisticated 4-vector representation:

Re: Donations

2012-06-03 Thread Walter Bright
On 6/3/2012 1:12 AM, Jonas Drewsen wrote: Would be nice if there was a tshirt with the new D logo. Something like http://www.blender3d.org/e-shop/product_info_n.php?products_id=141 How do you upload the prints to cafepress? Maybe someone on this list can create something cool looking. Anyone?

Re: Donations

2012-06-03 Thread D Day
On Saturday, 2 June 2012 at 11:42:22 UTC, Jacob Carlborg wrote: On Saturday, 2 June 2012 at 11:22:16 UTC, Oleg wrote: Hello everybody, i am interesting about D language, and i think many programmers would like to advance in popularity D language, can we give donations to D development and how?

non-instance accessibility of immutable instance variables with initializers

2012-06-03 Thread Timon Gehr
DMD 2.059: struct S{ immutable x = [1]; immutable y = 1; } void main(){ writeln(S.x);// ok writeln(S.x); // ok writeln(S.y);// ok // writeln(S.y);// error with(S) writeln(y); // ok (but resulting pointer is wrong) } This behaviour is

Re: non-instance accessibility of immutable instance variables with initializers

2012-06-03 Thread Simen Kjaeraas
On Sun, 03 Jun 2012 15:40:32 +0200, Timon Gehr timon.g...@gmx.ch wrote: DMD 2.059: struct S{ immutable x = [1]; immutable y = 1; } void main(){ writeln(S.x);// ok writeln(S.x); // ok writeln(S.y);// ok // writeln(S.y);// error

Re: non-instance accessibility of immutable instance variables with initializers

2012-06-03 Thread Artur Skawina
On 06/03/12 17:31, Simen Kjaeraas wrote: On Sun, 03 Jun 2012 15:40:32 +0200, Timon Gehr timon.g...@gmx.ch wrote: DMD 2.059: struct S{ immutable x = [1]; immutable y = 1; } void main(){ writeln(S.x);// ok writeln(S.x); // ok writeln(S.y);

Re: non-instance accessibility of immutable instance variables with initializers

2012-06-03 Thread Timon Gehr
On 06/03/2012 06:18 PM, Artur Skawina wrote: On 06/03/12 17:31, Simen Kjaeraas wrote: On Sun, 03 Jun 2012 15:40:32 +0200, Timon Gehrtimon.g...@gmx.ch wrote: DMD 2.059: struct S{ immutable x = [1]; immutable y = 1; } void main(){ writeln(S.x);// ok

Re: [Proposal] Additional operator overloadings for multidimentional indexing and slicing

2012-06-03 Thread tn
On Friday, 1 June 2012 at 01:57:36 UTC, kenji hara wrote: I'd like to propose a new language feature to D community. ... This patch is an additional enhancement of opDollar (issue 3474 and #442). Sounds awesome. However, the name opDollar should be changed to something like opSize, opLength,

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread deadalnix
Le 01/06/2012 22:55, Sean Kelly a écrit : On Jun 1, 2012, at 5:26 AM, deadalnix wrote: The main drawback is the same as opApply : return (and break/continue but it is less relevant for opSynchronized). Solution to this problem have been proposed in the past using compiler and stack magic.

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread Andrew Wiley
On Sun, Jun 3, 2012 at 12:29 PM, deadalnix deadal...@gmail.com wrote: Le 01/06/2012 22:55, Sean Kelly a écrit : On Jun 1, 2012, at 5:26 AM, deadalnix wrote: The main drawback is the same as opApply : return (and break/continue but it is less relevant for opSynchronized). Solution to this

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread mta`chrono
Am 30.05.2012 11:11, schrieb deadalnix: D already have much better tools that the one java provide (std.concurency, std.parallelism, TLS by default, transitive type qualifiers, . . .) that most these thing taken from java don't make any sense now. For instance, what is the point of being

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread mta`chrono
Am 31.05.2012 08:47, schrieb Jacob Carlborg: What should have been done is something like this: 1. Designing feature X 2. Show the new feature for the community 3. Consider the feedback and possible tweak/redesign 4. Implementing in an experimental branch of the compiler 5. Release an

RE: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread Andrew Wiley
*From:* mta`chrono chr...@mta-international.net *Sent:* Sunday, June 3, 2012 14:38:31 *To:* digitalmars-d@puremagic.com *Subject:* Re: synchronized (this[.classinfo]) in druntime and phobos Am 30.05.2012 11:11, schrieb deadalnix: D already have much better tools that the one java provide

Phobos pull 613

2012-06-03 Thread Brad Anderson
This pull [1] adds std.net.curl to the Windows makefiles (it has been missing for the last couple of releases). It'd be great if this could be merged before the next release. Denis figured out what was preventing the autotester from working (this is what prevented my pulls to fix this from

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread Alex Rønne Petersen
On 04-06-2012 00:00, Andrew Wiley wrote: *From:* mta`chrono chr...@mta-international.net mailto:chr...@mta-international.net *Sent:* Sunday, June 3, 2012 14:38:31 *To:* digitalmars-d@puremagic.com mailto:digitalmars-d@puremagic.com *Subject:* Re: synchronized (this[.classinfo]) in druntime

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread deadalnix
Le 03/06/2012 21:40, Andrew Wiley a écrit : On Sun, Jun 3, 2012 at 12:29 PM, deadalnix deadal...@gmail.com mailto:deadal...@gmail.com wrote: Le 01/06/2012 22:55, Sean Kelly a écrit : On Jun 1, 2012, at 5:26 AM, deadalnix wrote: The main drawback is the same as opApply

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread Andrew Wiley
On Sun, Jun 3, 2012 at 4:39 PM, deadalnix deadal...@gmail.com wrote: Le 03/06/2012 21:40, Andrew Wiley a écrit : On Sun, Jun 3, 2012 at 12:29 PM, deadalnix deadal...@gmail.com mailto:deadal...@gmail.com wrote: Le 01/06/2012 22:55, Sean Kelly a écrit : On Jun 1, 2012, at 5:26 AM,

Re: Exception/Error division in D

2012-06-03 Thread deadalnix
Le 01/06/2012 22:35, Walter Bright a écrit : On 6/1/2012 11:14 AM, deadalnix wrote: We are talking about runing scope statement and finally when unwiding the stack, not trying to continue the execution of the program. Which will be running arbitrary code not anticipated by the assert failure,

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread deadalnix
Le 04/06/2012 02:03, Andrew Wiley a écrit : On Sun, Jun 3, 2012 at 4:39 PM, deadalnix deadal...@gmail.com mailto:deadal...@gmail.com wrote: Le 03/06/2012 21:40, Andrew Wiley a écrit : On Sun, Jun 3, 2012 at 12:29 PM, deadalnix deadal...@gmail.com mailto:deadal...@gmail.com

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread Andrew Wiley
On Sun, Jun 3, 2012 at 5:13 PM, deadalnix deadal...@gmail.com wrote: Le 04/06/2012 02:03, Andrew Wiley a écrit : On Sun, Jun 3, 2012 at 4:39 PM, deadalnix deadal...@gmail.com mailto:deadal...@gmail.com wrote: Le 03/06/2012 21:40, Andrew Wiley a écrit : On Sun, Jun 3, 2012 at

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread Alex Rønne Petersen
On 04-06-2012 02:03, Andrew Wiley wrote: On Sun, Jun 3, 2012 at 4:39 PM, deadalnix deadal...@gmail.com mailto:deadal...@gmail.com wrote: Le 03/06/2012 21:40, Andrew Wiley a écrit : On Sun, Jun 3, 2012 at 12:29 PM, deadalnix deadal...@gmail.com mailto:deadal...@gmail.com

Re: synchronized (this[.classinfo]) in druntime and phobos

2012-06-03 Thread deadalnix
Le 04/06/2012 02:21, Andrew Wiley a écrit : On Sun, Jun 3, 2012 at 5:13 PM, deadalnix deadal...@gmail.com mailto:deadal...@gmail.com wrote: Le 04/06/2012 02:03, Andrew Wiley a écrit : On Sun, Jun 3, 2012 at 4:39 PM, deadalnix deadal...@gmail.com mailto:deadal...@gmail.com

Re: Donations

2012-06-03 Thread H. S. Teoh
On Sun, Jun 03, 2012 at 10:12:27AM +0200, Jonas Drewsen wrote: [...] Would be nice if there was a tshirt with the new D logo. Something like http://www.blender3d.org/e-shop/product_info_n.php?products_id=141 How do you upload the prints to cafepress? Maybe someone on this list can create

Re: Donations

2012-06-03 Thread Jonathan M Davis
On Sunday, June 03, 2012 18:42:25 H. S. Teoh wrote: There's a new D logo? Where? Look at dlang.org. That logo in the top-left is fairly new. It didn't exist when digitalmars.com was D's main website. - Jonathan M Davis

alias this with template class?

2012-06-03 Thread Namespace
I think this should work: [code] import std.stdio; class Foo(T) { public: T Num; @property Foo!(U) ConvertTo(U)() inout { return cast(Foo!(U)) this; } alias ConvertTo this; } void Call(const Foo!(float) FFoo) { } void

Re: alias this with template class?

2012-06-03 Thread Timon Gehr
On 06/03/2012 08:43 PM, Namespace wrote: I think this should work: [code] import std.stdio; class Foo(T) { public: T Num; @property Foo!(U) ConvertTo(U)() inout { return cast(Foo!(U)) this; } alias ConvertTo this; } void Call(const Foo!(float) FFoo) { }

Re: alias this with template class?

2012-06-03 Thread Namespace
Fail. Ok, i tried something like this: [code] import std.stdio; mixin template TConvertTo(T : Object, U) { T!(U) ConvertTo() inout { return cast(T!U) this; } alias ConvertTo this; } class Foo(T) { public: T Num; mixin

Re: Struct hash issues with string fields

2012-06-03 Thread H. S. Teoh
On Sat, May 26, 2012 at 09:53:07PM +0200, Andrej Mitrovic wrote: I don't understand this: import std.stdio; struct Symbol { string val; } void main() { int[string] hash1; hash1[1.idup] = 1; hash1[1.idup] = 2; writeln(hash1); // writes [1:2] int[Symbol] hash2;

[Issue 8185] Pure functions and pointers

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8185 --- Comment #9 from Denis Shelomovskij verylonglogin@gmail.com 2012-06-03 10:23:09 MSD --- Such a mess! The more people write here the more different opinions I see. IMHO, Walter and Andrei must also participate here to help with

[Issue 8189] New: const ref foreach iteration too

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8189 Summary: const ref foreach iteration too Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal

[Issue 8189] const ref foreach iteration too

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8189 --- Comment #1 from bearophile_h...@eml.cc 2012-06-03 03:51:16 PDT --- In a related issue I reported: void main() { const(int)[] array; foreach (const i; array) {} } -- Configure issuemail:

[Issue 3290] accepts-invalid: non-const by-ref foreach over a const array is accepted

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3290 --- Comment #4 from bearophile_h...@eml.cc 2012-06-03 03:52:23 PDT --- While testing this I have opened Issue 8189 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because:

[Issue 8190] New: Externally defined struct error message

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8190 Summary: Externally defined struct error message Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: diagnostic Severity: major

[Issue 6579] Calling static method should *require* using type and not instance, unless specified by author

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6579 Gor Gyolchanyan g...@boloneum.com changed: What|Removed |Added CC||g...@boloneum.com

[Issue 8191] New: cstream is completely unusable on x86_64

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8191 Summary: cstream is completely unusable on x86_64 Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2

[Issue 8185] Pure functions and pointers

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8185 --- Comment #10 from art.08...@gmail.com 2012-06-03 06:28:09 PDT --- (In reply to comment #7) argument value is all the data reachable via the parameters. Argument result is all the data reachable via the result. [...] the optimizer. My

[Issue 6579] Calling static method should *require* using type and not instance, unless specified by author

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6579 --- Comment #5 from art.08...@gmail.com 2012-06-03 06:42:55 PDT --- (In reply to comment #4) It hinders overloading. For so long I wanted to be able to have both static and non-static opDispatch and opCall and couldn't because of this.

[Issue 6579] Calling static method should *require* using type and not instance, unless specified by author

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6579 timon.g...@gmx.ch changed: What|Removed |Added CC||timon.g...@gmx.ch --- Comment #6

[Issue 6579] Calling static method should *require* using type and not instance, unless specified by author

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6579 --- Comment #7 from art.08...@gmail.com 2012-06-03 07:54:14 PDT --- (In reply to comment #6) Slightly refining the overloading rules as proposed in issue 3345 would already solve the problem. struct T{ static void foo(){...}

[Issue 8192] New: inconsistent behavior of initialized immutable instance fields

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8192 Summary: inconsistent behavior of initialized immutable instance fields Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal

[Issue 7995] regression(2.059): D runtime initialization from C fails on OSX in 2.059, worked in 2.058

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7995 d...@dawgfoto.de changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 8192] inconsistent behavior of initialized immutable instance fields

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8192 --- Comment #1 from timon.g...@gmx.ch 2012-06-03 10:23:29 PDT --- Better test case: struct S{ immutable y = 1; } void main(){ assert(S.y==1); // ok assert(S.y!is null); // compile error with(S){ assert(y!is null); //

[Issue 7995] regression(2.059): D runtime initialization from C fails on OSX in 2.059, worked in 2.058

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7995 --- Comment #8 from github-bugzi...@puremagic.com 2012-06-03 10:21:08 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/druntime

[Issue 8193] New: wrong error message on escaping initialized immutable instance field

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8193 Summary: wrong error message on escaping initialized immutable instance field Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity:

[Issue 8192] inconsistent behavior of initialized immutable instance fields

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8192 art.08...@gmail.com changed: What|Removed |Added CC||art.08...@gmail.com --- Comment

[Issue 8185] Pure functions and pointers

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8185 timon.g...@gmx.ch changed: What|Removed |Added CC||timon.g...@gmx.ch --- Comment #11

[Issue 8192] inconsistent behavior of initialized immutable instance fields

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8192 --- Comment #3 from art.08...@gmail.com 2012-06-03 12:25:49 PDT --- A better example: struct S { immutable int x = 1; int y; } struct S2 { immutable int x; int y; } void main(){ S s; S2 s2; static

[Issue 8185] Pure functions and pointers

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8185 --- Comment #12 from art.08...@gmail.com 2012-06-03 12:46:28 PDT --- (In reply to comment #11) Pointers may only access their own memory blocks, therefore exactly those blocks participate in argument value and return value. What does 'their

[Issue 8185] Pure functions and pointers

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8185 --- Comment #14 from art.08...@gmail.com 2012-06-03 13:52:53 PDT --- (In reply to comment #13) (In reply to comment #12) (In reply to comment #11) Pointers may only access their own memory blocks, therefore exactly those blocks

[Issue 8185] Pure functions and pointers

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8185 --- Comment #15 from Jonathan M Davis jmdavisp...@gmx.com 2012-06-03 14:40:12 PDT --- The _only_ thing that the pure attribute means by itself is that that function cannot directly access any mutable global or static variables. That is _all_.

[Issue 8185] Pure functions and pointers

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8185 --- Comment #16 from art.08...@gmail.com 2012-06-03 15:50:29 PDT --- (In reply to comment #15) pure by itself indicates a weakly pure function. That function enables _zero_ Inventing terminology doesn't help, especially when the result is so

[Issue 8194] New: Function cannot access frame even though all I requested was the type

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8194 Summary: Function cannot access frame even though all I requested was the type Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity:

[Issue 8185] Pure functions and pointers

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8185 --- Comment #17 from Jonathan M Davis jmdavisp...@gmx.com 2012-06-03 16:02:19 PDT --- They aren't _my_ definitions. They're official. They've been discussed in the newsgroup. They've even been used by folks like Walter Bright in talks at

[Issue 8180] UFCS writeln doesn't work with Tuples

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8180 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull

[Issue 8195] New: Segfault when comparing a VariantN to a non-variant type which it holds

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8195 Summary: Segfault when comparing a VariantN to a non-variant type which it holds Product: D Version: unspecified Platform: All OS/Version: All Status: NEW

[Issue 8185] Pure functions and pointers

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8185 --- Comment #18 from Denis Shelomovskij verylonglogin@gmail.com 2012-06-04 09:38:21 MSD --- (In reply to comment #15) I really don't know how the documentation could be much clearer. Once it will have examples showing what asserts have

[Issue 8185] Pure functions and pointers

2012-06-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8185 --- Comment #19 from Jonathan M Davis jmdavisp...@gmx.com 2012-06-03 22:58:33 PDT --- I honestly don't understand why much in the way of examples are needed. The documentation explains what pure is. When the compiler is able to optimize out