Re: ow Integers Should Work

2011-12-07 Thread Kagamin
On 2011-Dec-05 18:30:54+00:00, bearophile wrote: Manu: but I don't believe I'm alone.. the rest of the gamedev community will find D soon enough if the language gets it right... I think games are one of the most important short-term purposes of D, despite I think D was not explicitly designed

Re: Java Scala

2011-12-07 Thread Jacob Carlborg
On 2011-12-06 20:14, Adam Wilson wrote: My goal for the project is what you would term non-native in that it does not make use of the OS widgets; however the plan is to provide native looking skins for the widgets. I'd like to design something that interfaces with the machine at a lower level

Is D associative array thread safe, and will it relocate memory when add or delete a value?

2011-12-07 Thread raojm
Is D associative array thread safe, and will it relocate memory when add or delete a value? Where I can find the implemention.

Re: Is D associative array thread safe, and will it relocate memory when add or delete a value?

2011-12-07 Thread Jacob Carlborg
On 2011-12-07 08:59, raojm wrote: Is D associative array thread safe, and will it relocate memory when add or delete a value? Where I can find the implemention. You should be able to find the implementation somewhere in druntime: https://github.com/D-Programming-Language/druntime --

Re: Is D associative array thread safe, and will it relocate memory when add or delete a value?

2011-12-07 Thread Martin Nowak
On Wed, 07 Dec 2011 08:59:32 +0100, raojm ra...@91ne.com wrote: Is D associative array thread safe, and will it relocate memory when add or delete a value? Where I can find the implemention. No it's not, and yes it has to relocate memory. It's working as a hashtable not a binary tree, so

Re: The current status of D?

2011-12-07 Thread Timon Gehr
On 12/07/2011 08:35 AM, Kagamin wrote: int z = 0; int foo(int x, int y) { return x + y; } int bar(int x) { z++; return x * x + z; } int baz(int x) { z--; return 2 * x + z; } int main() { int w = foo(bar(5), baz(3)); return w; } See also: http://en.wikipedia.org/wiki/Sequence_point I think ','

Re: The current status of D?

2011-12-07 Thread Don
On 06.12.2011 09:37, bearophile wrote: Don: Right. But it's hard to come up with high-priority language issues these days. The old ones have been fixed.g. There are several things that I'd like to see fixed/improved in D still. Yes, of course. But most of the showstoppers are done. Not so

Re: DDMD

2011-12-07 Thread dolive
Andrej Mitrovic Wrote: This is much harder than I expected it to be.. It's problematic because everything has to be hand-ported. And things aren't so obvious, as DDMD introduces some of its own helper functions. I think to really port this properly I would need to know the ins and outs

Re: Looking forward to the resurrection ddmd

2011-12-07 Thread dolive
Daniel Murphy Wrote: Nick Sabalausky a@a.a wrote in message news:j4gflo$1c59$1...@digitalmars.com... I'm wondering if maybe the problem is that it needs a different approach. I suspect a big part of the reason it's stagnated is because it's difficult to update to new versions of DMD.

Re: Is D associative array thread safe, and will it relocate memory when add or delete a value?

2011-12-07 Thread Jonathan M Davis
On Wednesday, December 07, 2011 09:10:16 Martin Nowak wrote: On Wed, 07 Dec 2011 08:59:32 +0100, raojm ra...@91ne.com wrote: Is D associative array thread safe, and will it relocate memory when add or delete a value? Where I can find the implemention. No it's not, and yes it has to

Re: The current status of D?

2011-12-07 Thread Jonathan M Davis
On Wednesday, December 07, 2011 09:16:48 Don wrote: On 06.12.2011 09:37, bearophile wrote: Don: Right. But it's hard to come up with high-priority language issues these days. The old ones have been fixed.g. There are several things that I'd like to see fixed/improved in D still. Yes,

Re: ow Integers Should Work

2011-12-07 Thread Paulo Pinto
Don Wrote: On 07.12.2011 05:11, bcs wrote: On 12/05/2011 11:20 PM, Don wrote: On 06.12.2011 05:21, bcs wrote: On 12/05/2011 08:37 AM, Don wrote: On 05.12.2011 14:31, bearophile wrote: Found through Reddit, two blog posts about how integers should behave in system languages (with

Re: The current status of D?

2011-12-07 Thread Kagamin
http://en.wikipedia.org/wiki/Sequence_point I think ',' in parameter lists are already sequence points. They aren't, but a function call is a sequence point, so bar is guaranteed to be called before baz. ? If bar is guaranteed to be called before baz, then the ',' is associated with a

Re: SCons support for D

2011-12-07 Thread Andrew Gough
On Tue, 06 Dec 2011 18:14:25 + Russel Winder rus...@russel.org.uk wrote: SCons is a Python-based build tool to replace Make and much of the Autotools functionality. It has D support as part of the core. This support is though in need of development. The new Mercurial/BitBucket

Re: SCons support for D

2011-12-07 Thread Russel Winder
On Wed, 2011-12-07 at 20:27 +1100, Andrew Gough wrote: [...] I think the build tool question is in need of the same level of high level design and support that Steve Teale is working on for std.database/std.sql. I am not sure I quite get that, sorry. It seems there is SCons support (python),

Re: ow Integers Should Work

2011-12-07 Thread bearophile
Kagamin: I played a game, where experience counter was int32, it wasn't meant to overflow during normal play, but it allowed console commands, which could be a lot of fun, so I made xp overflow to negative values, it didn't make any trouble, just in the case it used checked arithmetic, it

Re: ow Integers Should Work

2011-12-07 Thread bearophile
Manu: but making standard ints compromise basic hardware implementation just won't fly. Ada language does those things, and it's used to fly planes :-) So maybe it will fly. Today some online games are managing real money of the players. You don't want to use raw integers to manage those

Re: SCons support for D

2011-12-07 Thread Andrew Gough
On Wed, 07 Dec 2011 09:54:08 + Russel Winder rus...@russel.org.uk wrote: On Wed, 2011-12-07 at 20:27 +1100, Andrew Gough wrote: [...] I think the build tool question is in need of the same level of high level design and support that Steve Teale is working on for std.database/std.sql.

Re: ow Integers Should Work

2011-12-07 Thread Timon Gehr
On 12/07/2011 11:46 AM, bearophile wrote: Manu: but making standard ints compromise basic hardware implementation just won't fly. Ada language does those things, and it's used to fly planes :-) So maybe it will fly. Maybe. Ada in action: http://www.youtube.com/watch?v=kYUrqdUyEpI

Re: The current status of D?

2011-12-07 Thread Alex Rønne Petersen
On 07-12-2011 09:16, Don wrote: On 06.12.2011 09:37, bearophile wrote: Don: Right. But it's hard to come up with high-priority language issues these days. The old ones have been fixed.g. There are several things that I'd like to see fixed/improved in D still. Yes, of course. But most of

Re: SCons support for D

2011-12-07 Thread Jacob Carlborg
On 2011-12-07 10:27, Andrew Gough wrote: On Tue, 06 Dec 2011 18:14:25 + Russel Winderrus...@russel.org.uk wrote: SCons is a Python-based build tool to replace Make and much of the Autotools functionality. It has D support as part of the core. This support is though in need of

Re: SCons support for D

2011-12-07 Thread Jacob Carlborg
On 2011-12-07 10:54, Russel Winder wrote: On Wed, 2011-12-07 at 20:27 +1100, Andrew Gough wrote: [...] I think the build tool question is in need of the same level of high level design and support that Steve Teale is working on for std.database/std.sql. I am not sure I quite get that, sorry.

Re: Is D associative array thread safe, and will it relocate memory when add or delete a value?

2011-12-07 Thread Steven Schveighoffer
On Wed, 07 Dec 2011 04:00:34 -0500, Jonathan M Davis jmdavisp...@gmx.com wrote: On Wednesday, December 07, 2011 09:10:16 Martin Nowak wrote: On Wed, 07 Dec 2011 08:59:32 +0100, raojm ra...@91ne.com wrote: Is D associative array thread safe, and will it relocate memory when add or delete

Re: SCons support for D

2011-12-07 Thread Russel Winder
On Wed, 2011-12-07 at 22:00 +1100, Andrew Gough wrote: [...] I'm suggesting that the current multi-pronged approach to providing a workable build system is hampered by the multitude of directions and could benefit from some initial discussion, consensus and design. OK. It is a valid point,

Re: SCons support for D

2011-12-07 Thread Russel Winder
On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote: [...] What I see as the advantage of a new build system is that it can be developed specifically for D which could make the tool very easy to use. Example: $ tool build main.d Go has gone to the extreme with this, they have a

On garbage collection

2011-12-07 Thread deadalnix
http://www.infoq.com/presentations/Understanding-Java-Garbage-Collection This is java focussed, but I think this is still very interesting for D people. So I'm sharing it here.

Re: Haxe (From: Java Scala - new thread: GUI for D)

2011-12-07 Thread Adam Ruppe
Adrian Wrote: [OT] As a side point from a not yet D developer, but someone who looks at the language with great interest, but also someone with a commercial responsibility: I am missing big projects developed in D and the most logic project would be the compiler itself! I know this has been

Re: SCons support for D

2011-12-07 Thread Gour
On Wed, 07 Dec 2011 14:38:04 +0100 Jacob Carlborg d...@me.com wrote: What I see as the advantage of a new build system is that it can be developed specifically for D which could make the tool very easy to use. Example: $ tool build main.d That's all that should be needed to build an

Re: SCons support for D

2011-12-07 Thread Jacob Carlborg
On 2011-12-07 15:03, Russel Winder wrote: Having watched what happened with Gant, Gradle, Buildr, sbt, Leiningen, Rake, Bake, Rant, Ant, Maven, make, Cmake, Autotools, etc. I fear the overall effect of a focused on D build tool, whether build from scratch or over another framework. Specialist

Re: SCons support for D

2011-12-07 Thread Jacob Carlborg
On 2011-12-07 15:06, Russel Winder wrote: On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote: [...] What I see as the advantage of a new build system is that it can be developed specifically for D which could make the tool very easy to use. Example: $ tool build main.d Go has gone to

Re: SCons support for D

2011-12-07 Thread Jacob Carlborg
On 2011-12-07 15:15, Gour wrote: On Wed, 07 Dec 2011 14:38:04 +0100 Jacob Carlborgd...@me.com wrote: What I see as the advantage of a new build system is that it can be developed specifically for D which could make the tool very easy to use. Example: $ tool build main.d That's all that

Re: Haxe (From: Java Scala - new thread: GUI for D)

2011-12-07 Thread Nick Sabalausky
Adrian adrian.remove-nos...@veith-system.de wrote in message news:jbnmoo$2seg$1...@digitalmars.com... The downside would be, that there is the risk of incompatibilities of the compilers, leading to 2 different dialects, which would force the users of both, only to use the subset of the

Re: std.json dynamic initialization of JSONValue

2011-12-07 Thread David
Am 06.12.2011 22:30, schrieb Kai Meyer: I posted this on D.learn, but got no responses. I'm hoping it's because I'm asking the wrong crowd. I'm finding std.json extremely well written, with one glaring exception. I can't seem to figure out how to do this: JSONValue root = JSONValue(null,

Re: SCons support for D

2011-12-07 Thread Paulo Pinto
Jacob Carlborg Wrote: On 2011-12-07 15:06, Russel Winder wrote: On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote: [...] What I see as the advantage of a new build system is that it can be developed specifically for D which could make the tool very easy to use. Example: $

Re: Is D associative array thread safe, and will it relocate memory when add or delete a value?

2011-12-07 Thread Martin Nowak
On Wed, 07 Dec 2011 14:51:49 +0100, Steven Schveighoffer schvei...@yahoo.com wrote: On Wed, 07 Dec 2011 04:00:34 -0500, Jonathan M Davis jmdavisp...@gmx.com wrote: On Wednesday, December 07, 2011 09:10:16 Martin Nowak wrote: On Wed, 07 Dec 2011 08:59:32 +0100, raojm ra...@91ne.com wrote:

Comma operator = broken design

2011-12-07 Thread Alex Rønne Petersen
Hi, Consider this code: if (condition) foo(); else bar(), baz(); Notice the comma in the bar call. This will actually compile. Why? Because the program is really interpreted as: if (condition) { foo(); } else { bar(); baz(); } This is, honestly, ridiculous. On most

Comma operator = broken design

2011-12-07 Thread Joshua Cearley
It could be moved to use either the section character or one of the application-specific unicode points reserved for internal use by whatever an application wants. This would eliminate confusing typing and, if using this for generated code, the generator can easily reference it by unicode ID

Hazard pointers needed with GC ?

2011-12-07 Thread Martin Nowak
I implemented a lock-free doubly linked list some time ago. I omitted the use of hazard lists because flagging the lowest bit would still make a valid pointer into the list node. Afterwards I found that http://www.d-programming-language.org/garbage.html explicitly states: p =

On garbage collection

2011-12-07 Thread Dejan Lekic
On 2011-Dec-07 14:13:11+00:00, deadalnix wrote: http://www.infoq.com/presentations/Understanding-Java-Garbage-Collection This is java focussed, but I think this is still very interesting for D people. So I'm sharing it here. Thanks for the link - I've just finished watching the presentation.

Re: is d-runtime non-gc safe?

2011-12-07 Thread Sean Cavanaugh
On 12/5/2011 3:22 PM, Norbert Nemec wrote: On 05.12.2011 21:40, Tobias Pankrath wrote: Right - thanks for the hint! That would leave the following rules for real-time audio code in D: [snip] What's about message passing? Is message passing hard real time ready? The issue actually came up

Re: Hazard pointers needed with GC ?

2011-12-07 Thread deadalnix
Le 07/12/2011 18:02, Martin Nowak a écrit : I implemented a lock-free doubly linked list some time ago. I omitted the use of hazard lists because flagging the lowest bit would still make a valid pointer into the list node. Afterwards I found that

Re: Comma operator = broken design

2011-12-07 Thread Robert Jacques
On Wed, 07 Dec 2011 11:49:33 -0500, Alex Rønne Petersen xtzgzo...@gmail.com wrote: Hi, Consider this code: if (condition) foo(); else bar(), baz(); Notice the comma in the bar call. This will actually compile. Why? Because the program is really interpreted as: if (condition) {

Re: Comma operator = broken design

2011-12-07 Thread Adam Ruppe
Alex Rønne Petersen Wrote: I really do not see the value in allowing such syntax in the first place. I've been told that one argument was that generated code might use it, but I have no idea why it would be needed. Aside from the compiler's implementation, one possible use is something I

Re: SCons support for D

2011-12-07 Thread Russel Winder
On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote: [...] Example: $ tool build main.d That's all that should be needed to build an executable. You could have the same in a build script: // buildfile main.d $ tool build Currently with SCons, you type: $ scons and the

Re: Comma operator = broken design

2011-12-07 Thread Nick Sabalausky
Adam Ruppe destructiona...@gmail.com wrote in message news:jbo8rr$rhh$1...@digitalmars.com... Alex Rønne Petersen Wrote: I really do not see the value in allowing such syntax in the first place. I've been told that one argument was that generated code might use it, but I have no idea why it

Re: Comma operator = broken design

2011-12-07 Thread Nick Sabalausky
Robert Jacques sandf...@jhu.edu wrote in message news:op.v54q04vd26s...@sandford.myhome.westell.com... On Wed, 07 Dec 2011 11:49:33 -0500, Alex Rønne Petersen xtzgzo...@gmail.com wrote: Why is this operator still kept around? Take your pick: 1) So that legacy B/C/C++/D1/etc code can be

Re: ow Integers Should Work

2011-12-07 Thread Walter Bright
On 12/7/2011 2:46 AM, bearophile wrote: Today some online games are managing real money of the players. You don't want to use raw integers to manage those important numbers :-) Banks have been using computer programs to handle money forever, so has every piece of accounting software. I.e.

Re: SCons support for D

2011-12-07 Thread Jens Mueller
Andrew Gough wrote: On Tue, 06 Dec 2011 18:14:25 + Russel Winder rus...@russel.org.uk wrote: SCons is a Python-based build tool to replace Make and much of the Autotools functionality. It has D support as part of the core. This support is though in need of development. The new

Re: Hazard pointers needed with GC ?

2011-12-07 Thread Martin Nowak
On Wed, 07 Dec 2011 18:28:59 +0100, deadalnix deadal...@gmail.com wrote: Le 07/12/2011 18:02, Martin Nowak a écrit : I implemented a lock-free doubly linked list some time ago. I omitted the use of hazard lists because flagging the lowest bit would still make a valid pointer into the list

Re: SCons support for D

2011-12-07 Thread Manu
premake supports D? I was planning to add D support to premake myself, but that's wonderful news. I'll add support for VisualD if it is not already done. GDC is also important. Great news! :) On 7 December 2011 21:56, Jens Mueller jens.k.muel...@gmx.de wrote: Andrew Gough wrote: On Tue, 06

Overloading doesn't work like described in The D programming language

2011-12-07 Thread Michael Kremser
Hi! On pages 145 and 146 (§ 5.5.1) of The D programming language there is an example with overloading a function with uint, long, and a parameterized type. I tried to reproduce that using a similar example: code module main; import std.stdio; void overloadme(uint number) {

Re: Overloading doesn't work like described in The D programming language

2011-12-07 Thread Jonathan M Davis
On Wednesday, December 07, 2011 22:35:04 Michael Kremser wrote: Hi! On pages 145 and 146 (§ 5.5.1) of The D programming language there is an example with overloading a function with uint, long, and a parameterized type. I tried to reproduce that using a similar example: code module main;

Re: Overloading doesn't work like described in The D programming language

2011-12-07 Thread Steven Schveighoffer
On Wed, 07 Dec 2011 16:35:04 -0500, Michael Kremser mkspamx-use...@yahoo.de wrote: Hi! On pages 145 and 146 (§ 5.5.1) of The D programming language there is an example with overloading a function with uint, long, and a parameterized type. I tried to reproduce that using a similar

Re: SCons support for D

2011-12-07 Thread Gour
On Wed, 7 Dec 2011 22:39:34 +0200 Manu turkey...@gmail.com wrote: premake supports D? I was planning to add D support to premake myself, but that's wonderful news. I'll add support for VisualD if it is not already done. Didn't hear about premake before...how does it compare with e.g. Cmake?

Re: Comma operator = broken design

2011-12-07 Thread Timon Gehr
On 12/07/2011 07:02 PM, Nick Sabalausky wrote: Adam Ruppedestructiona...@gmail.com wrote in message news:jbo8rr$rhh$1...@digitalmars.com... Alex Rønne Petersen Wrote: I really do not see the value in allowing such syntax in the first place. I've been told that one argument was that generated

Re: Hazard pointers needed with GC ?

2011-12-07 Thread Timon Gehr
On 12/07/2011 06:02 PM, Martin Nowak wrote: I implemented a lock-free doubly linked list some time ago. I omitted the use of hazard lists because flagging the lowest bit would still make a valid pointer into the list node. Afterwards I found that

What would you do...

2011-12-07 Thread Manu
Hey peoples, So this might be a bit off topic... but I'm trying to think about the best way to write a small program in the most D-ish way possible (just to make sure I'm giving myself the most realistic experience with the language), and I wanted to get some thoughts. I don't know which way to

Re: Hazard pointers needed with GC ?

2011-12-07 Thread Walter Bright
On 12/7/2011 9:02 AM, Martin Nowak wrote: I implemented a lock-free doubly linked list some time ago. I omitted the use of hazard lists because flagging the lowest bit would still make a valid pointer into the list node. Afterwards I found that http://www.d-programming-language.org/garbage.html

Re: SCons support for D

2011-12-07 Thread Jens Mueller
Gour wrote: On Wed, 7 Dec 2011 22:39:34 +0200 Manu turkey...@gmail.com wrote: premake supports D? I was planning to add D support to premake myself, but that's wonderful news. I'll add support for VisualD if it is not already done. Didn't hear about premake before...how does it

Re: rt_finalize WTFs?

2011-12-07 Thread Sean Kelly
On Dec 4, 2011, at 5:46 PM, dsimcha wrote: I'm at my traditional passtime of trying to speed up D's garbage collector again, and I've stumbled on the fact that rt_finalize is taking up a ridiculous share of the time (~30% of total runtime) on a benchmark where huge numbers of classes

Re: Comma operator = broken design

2011-12-07 Thread Jonathan M Davis
On Wednesday, December 07, 2011 23:10:53 Timon Gehr wrote: On 12/07/2011 07:02 PM, Nick Sabalausky wrote: Adam Ruppedestructiona...@gmail.com wrote in message news:jbo8rr$rhh$1...@digitalmars.com... Alex Rønne Petersen Wrote: I really do not see the value in allowing such syntax in the

Re: Hazard pointers needed with GC ?

2011-12-07 Thread Martin Nowak
On Wed, 07 Dec 2011 23:23:26 +0100, Walter Bright newshou...@digitalmars.com wrote: On 12/7/2011 9:02 AM, Martin Nowak wrote: I implemented a lock-free doubly linked list some time ago. I omitted the use of hazard lists because flagging the lowest bit would still make a valid pointer into

Re: Comma operator = broken design

2011-12-07 Thread Robert Jacques
On Wed, 07 Dec 2011 13:19:31 -0500, Nick Sabalausky a@a.a wrote: Robert Jacques sandf...@jhu.edu wrote in message news:op.v54q04vd26s...@sandford.myhome.westell.com... On Wed, 07 Dec 2011 11:49:33 -0500, Alex Rønne Petersen xtzgzo...@gmail.com wrote: Why is this operator still kept around?

expression templates vs D arrays

2011-12-07 Thread Jay Norwood
I've been reading about the use of expression templates in this blitz page, which provides arrays implemented by c++ templates. They have some convenient features, such as array initialization with auto-incrementing array index values in the expressions and applying a cast operator to an

Re: ow Integers Should Work

2011-12-07 Thread bcs
On 12/06/2011 11:50 PM, Don wrote: He's talking about system languages. A system language has to have a close relationship to the architecture. By contrast, if you don't care about performance, it's easy -- just use BigInts for everything. Problem solved. Looks like I have to put it more

Re: Comma operator = broken design

2011-12-07 Thread bcs
On 12/07/2011 08:49 AM, Alex Rønne Petersen wrote: I really do not see the value in allowing such syntax in the first place. I've been told that one argument was that generated code might use it, but I have no idea why it would be needed. Furthermore, this operator makes it very hard to

Re: SCons support for D

2011-12-07 Thread Gour
On Wed, 7 Dec 2011 23:31:10 +0100 Jens Mueller jens.k.muel...@gmx.de wrote: The nice thing about premake is that it is build using Lua. So you have a full language at your disposal. Heh, that much I could see quickly...Something like Scons/Waf... CMake's configuration language is not that

Re: expression templates vs D arrays

2011-12-07 Thread Robert Jacques
On Wed, 07 Dec 2011 23:27:41 -0500, Jay Norwood j...@prismnet.com wrote: I've been reading about the use of expression templates in this blitz page, which provides arrays implemented by c++ templates. They have some convenient features, such as array initialization with auto-incrementing

Re: SCons support for D

2011-12-07 Thread Jacob Carlborg
On 2011-12-07 16:49, Paulo Pinto wrote: Jacob Carlborg Wrote: On 2011-12-07 15:06, Russel Winder wrote: On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote: [...] What I see as the advantage of a new build system is that it can be developed specifically for D which could make the tool

Re: SCons support for D

2011-12-07 Thread Jacob Carlborg
On 2011-12-07 19:02, Russel Winder wrote: On Wed, 2011-12-07 at 14:38 +0100, Jacob Carlborg wrote: [...] Example: $ tool build main.d That's all that should be needed to build an executable. You could have the same in a build script: // buildfile main.d $ tool build Currently with SCons,

Re: SCons support for D

2011-12-07 Thread Jacob Carlborg
On 2011-12-07 20:56, Jens Mueller wrote: I'm unsure whether D needs its own configuration/build tool. It definitely needs a package manager. For building there are different options but usually it's make. Most people (at least for sure on Unix variants) are using it. I think Scons does both

Re: expression templates vs D arrays

2011-12-07 Thread Walter Bright
On 12/7/2011 11:11 PM, Robert Jacques wrote: On Wed, 07 Dec 2011 23:27:41 -0500, Jay Norwood j...@prismnet.com wrote: I've been reading about the use of expression templates in this blitz page, which provides arrays implemented by c++ templates. They have some convenient features, such as

Is D associative array thread safe, and will it relocate memory when add or delete a value?

2011-12-07 Thread Dejan Lekic
On 2011-Dec-07 02:17:17+00:00, raojm wrote: Is D associative array thread safe, and will it relocate memory when add or delete a value? Where I can find the implemention. Phobos and druntime are on GitHub, you can always check out the source...

Re: C++ vs D aggregates

2011-12-07 Thread Dejan Lekic
What does not? Yes, that kind of struct will work. :) Try to add a constructor...

[Issue 664] is(func T == function) ignores variadic arguments

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=664 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||clugd...@yahoo.com.au ---

[Issue 7067] std.random.RandomSample and RandomCover are poorly designed

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7067 Alex R�nne Petersen xtzgzo...@gmail.com changed: What|Removed |Added CC|

[Issue 7077] New: mixin statements can invade the enclosing scope

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7077 Summary: mixin statements can invade the enclosing scope Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Keywords: accepts-invalid, rejects-valid

[Issue 7075] overloading opAssign for class is allowed

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7075 Trass3r mrmoc...@gmx.de changed: What|Removed |Added Keywords||accepts-invalid

[Issue 7075] overloading opAssign for classes is poorly specified

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7075 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added Keywords|accepts-invalid |

[Issue 7072] [2.057 Beta] Assertion failure: '0' on line 145 in file 'mtype.c'

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7072 Robert Clipsham rob...@octarineparrot.com changed: What|Removed |Added CC|

[Issue 7072] [2.057 Beta] Assertion failure: '0' on line 145 in file 'mtype.c'

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7072 --- Comment #6 from David Simcha dsim...@yahoo.com 2011-12-07 13:19:49 PST --- I'm aware of DustMite. I just never got around to setting it up/learning how it works because it doesn't look easy. Usually reducing stuff like this doesn't take

[Issue 2972] [tdpl] Can't overload non-templated function against template

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2972 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added CC|

[Issue 6881] [XMM] ICE with painted float

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6881 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 7027] Struct member trySemantic() regression in DMD Git master

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7027 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 7078] New: BigInt.toInt returns a long

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7078 Summary: BigInt.toInt returns a long Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos

[Issue 7027] Struct member trySemantic() regression in DMD Git master

2011-12-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7027 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED