Re: D:YAML 0.3 released

2011-11-17 Thread torhu
On 16.11.2011 21:15, Kiith-Sa wrote: ... GitHub: https://github.com/kiith-sa/D-YAML Docs : dyaml.alwaysdata.net/docs You can get D:YAML 0.3 here: https://github.com/kiith-sa/D-YAML/downloads Great, I've been looking into YAML lately. Would be interesting to see how the speed of your

Re: D:YAML 0.3 released

2011-11-17 Thread Kiith-Sa
torhu wrote: On 16.11.2011 21:15, Kiith-Sa wrote: ... GitHub: https://github.com/kiith-sa/D-YAML Docs : dyaml.alwaysdata.net/docs You can get D:YAML 0.3 here: https://github.com/kiith-sa/D-YAML/downloads Great, I've been looking into YAML lately. Would be interesting to see how the

Re: D:YAML 0.3 released

2011-11-17 Thread torhu
On 17.11.2011 15:01, Kiith-Sa wrote: Thanks for your input. Your example doesn't seem to be significantly simpler, but a good point is that the Mark structures don't need to be passed. I'm considering this style: --- bool constructMyStructScalar(ref Node node) { auto parts =

Re: D:YAML 0.3 released

2011-11-17 Thread Kiith-Sa
Performance is actually not an issue here, insignificant part of total parsing time is spent in Constructor (only about 2%) and any slowdown there should not be noticeable. The idea you're proposing here would indeed simplify the API, but I'm not sure if the result would always be what the user

Re: D:YAML 0.3 released

2011-11-17 Thread torhu
On 17.11.2011 17:21, Kiith-Sa wrote: Performance is actually not an issue here, insignificant part of total parsing time is spent in Constructor (only about 2%) and any slowdown there should not be noticeable. The idea you're proposing here would indeed simplify the API, but I'm not sure if the

Re: Array slice assign syntax

2011-11-17 Thread Martin Nowak
On Wed, 16 Nov 2011 19:47:47 +0100, Timon Gehr timon.g...@gmx.ch wrote: On 11/16/2011 04:24 AM, bearophile wrote: The Bugzilla issues that I really care about is a not an useless long list, it's about fifteen items long, and this post is about one of them. I think current array slice assign

Re: newsgroup web viewer

2011-11-17 Thread Bernard Helyer
On Wed, 16 Nov 2011 20:04:39 +1300, Bernard Helyer b.hel...@gmail.com wrote: On Tue, 15 Nov 2011 22:48:55 -0800, Walter Bright wrote: russian porn spam WHY WAS I NOT INFORMED? I mean, terrible stuff. :o Forgive me, but I'm just trying out Opera's NG reader.

Re: reddit discussion on article by bearophile

2011-11-17 Thread bearophile
Andrei Alexandrescu: This is actually a pretty awesome fail. Derived from those thoughts, an idea for Phobos, a bitFlags function: http://d.puremagic.com/issues/show_bug.cgi?id=6946 A desire: http://d.puremagic.com/issues/show_bug.cgi?id=6916 Example: import std.stdio; enum : int { A, B }

Re: Curl wrapper review

2011-11-17 Thread Jonas Drewsen
On 16/11/11 20.21, Johannes Pfau wrote: Jonas Drewsen wrote: Hi, After all the comments from last review I've refactored the curl wrapper and it is ready for a new review. David Nadlinger was handling the last review so I guess it would make sense if he run this one as well if he wants

Re: newsgroup web viewer

2011-11-17 Thread Kagamin
Somedude wrote: Le 16/11/2011 05:47, bcs a http://arsdnet.net/d-web-site/nntp/get-message?newsgroup=digitalmars.DmessageId=%3Cja1bp9%242ps%241%40digitalmars.com%3E http://arsdnet.net/d-web-site/nntp/get-message?newsgroup=digitalmars.DmessageId=%3Cja1chd%246bj%241%40digitalmars.com%3E Probably

Re: Curl wrapper review

2011-11-17 Thread Jacob Carlborg
On 2011-11-17 10:16, Jonas Drewsen wrote: On 16/11/11 20.21, Johannes Pfau wrote: Jonas Drewsen wrote: Hi, After all the comments from last review I've refactored the curl wrapper and it is ready for a new review. David Nadlinger was handling the last review so I guess it would make sense if

Re: Website message overhaul

2011-11-17 Thread Tobias Pankrath
There is also an error in the language spec site for classes. Probably a syntax error in the macros, because the page begins with $(SPEC_S Classes, and the text and background colours are wrong. http://d-programming-language.org/class.html

Re: Curl wrapper review

2011-11-17 Thread Jonas Drewsen
On 17/11/11 11.54, Jacob Carlborg wrote: On 2011-11-17 10:16, Jonas Drewsen wrote: On 16/11/11 20.21, Johannes Pfau wrote: Jonas Drewsen wrote: Hi, After all the comments from last review I've refactored the curl wrapper and it is ready for a new review. David Nadlinger was handling the

Re: Curl wrapper review

2011-11-17 Thread Johannes Pfau
Jonas Drewsen wrote: On 16/11/11 20.21, Johannes Pfau wrote: Jonas Drewsen wrote: Hi, After all the comments from last review I've refactored the curl wrapper and it is ready for a new review. David Nadlinger was handling the last review so I guess it would make sense if he run this

Re: Why not extend array operations to full Fortran90 power ?

2011-11-17 Thread Steve Teale
The semantics of (2) is unambiguous, and it works perfectly well in Fortran90. Allowing (2) would make D really attractive for formula-heavy mathematical work. - Joachim Heard that line before Walter? I still have the T shirt. Steve

Re: newsgroup web viewer

2011-11-17 Thread Kagamin
bcs Wrote: Well you should be able to find feature list and screen shots from the available options. Anyone who is going to make an effort to write a NNTP client should really try out the existing one first. For that matter, most anyone who has the resources to write a new client will

D web server helper applications.

2011-11-17 Thread Steve Teale
I've noticed this sort of thing mentioned a couple of times recently in conjunction with CGI. I did a D implementation of the AJP13 protocol some time ago. That is very easy to set up in Apache - you just follow the instructions for Tomcat. Then you can make your D app a service/daemon so it

Re: Translation of C struct to D

2011-11-17 Thread Michael Kremser
Am 2011-11-16 23:23, schrieb Trass3r: If I try to cast with register_chrdev(0, (char*)DEVICE_NAME, fops); the following error appears: C style cast illegal, use cast(char*)DEVICE_NAME Or use DEVICE_NAME.ptr Compilation now succeeded, but when I try to load with insmod, the following errors

Re: Array slice assign syntax

2011-11-17 Thread Timon Gehr
On 11/17/2011 09:12 AM, Martin Nowak wrote: On Wed, 16 Nov 2011 19:47:47 +0100, Timon Gehr timon.g...@gmx.ch wrote: On 11/16/2011 04:24 AM, bearophile wrote: The Bugzilla issues that I really care about is a not an useless long list, it's about fifteen items long, and this post is about one

Re: reddit discussion on article by bearophile

2011-11-17 Thread Timon Gehr
On 11/17/2011 09:33 AM, bearophile wrote: Andrei Alexandrescu: This is actually a pretty awesome fail. Derived from those thoughts, an idea for Phobos, a bitFlags function: http://d.puremagic.com/issues/show_bug.cgi?id=6946 A desire: http://d.puremagic.com/issues/show_bug.cgi?id=6916

Re: newsgroup web viewer

2011-11-17 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:ja2756$1j32$1...@digitalmars.com... I did some bug fixing tonight and changed some features. http://arsdnet.net/d-web-site/nntp/thread-index?newsgroup=digitalmars.D * The links are all working now. You can view individual posts.

Re: Website message overhaul

2011-11-17 Thread Paulo Pinto
Hi, the only issue with your sentence is that the efficiency of native code is also possible with C#. -- Paulo Daniel Gibson metalcae...@gmail.com wrote in message news:ja10k6$27j8$1...@digitalmars.com... Am 16.11.2011 02:24, schrieb Jude Young: I see one camp that is against using

Re: newsgroup web viewer

2011-11-17 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:ja0uk6$26tb$1...@digitalmars.com... I really do not understand why people keep writing replacements for newsreaders that miss fundamentally useful aspects of it. Probably because it's more than 6 months old, and isn't web 2.0 or

Re: Website message overhaul

2011-11-17 Thread Andrei Alexandrescu
At any rate, I wouldn't want the D intro page to mention any other language. Andrei On 11/17/11 8:05 AM, Paulo Pinto wrote: Hi, the only issue with your sentence is that the efficiency of native code is also possible with C#. -- Paulo Daniel Gibsonmetalcae...@gmail.com wrote in message

Re: Website message overhaul

2011-11-17 Thread Sean Kelly
If you compare your product to another one you're implying that the other product is better in some way. Generally a bad idea to do so. Sent from my iPhone On Nov 17, 2011, at 10:34 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: At any rate, I wouldn't want the D intro page to

Re: Why not extend array operations to full Fortran90 power ?

2011-11-17 Thread Xinok
On 11/16/2011 2:08 PM, Joachim Wuttke j.wut...@fz-juelich.de wrote: (1) Y[] = X[]*X[]; (2) Y[] = sin( X[] ); I realized a problem with (2), it's actually not possible to rewrite it using existing constructs because foreach doesn't support multiple iterators. You can use

Re: Website message overhaul

2011-11-17 Thread Somedude
Le 15/11/2011 22:31, Daniel Gibson a écrit : Am 15.11.2011 02:29, schrieb Jonathan M Davis: I think that C++ is really the only language that I've heard termed multi- paradigm (though most languages do allow for multiple paradigms on some level, even if they tend to focus heavily on one),

Re: Website message overhaul

2011-11-17 Thread Somedude
Le 15/11/2011 23:17, Daniel Gibson a écrit : I still think the best description for D is C++ done right ;-) Cheers, - Daniel That's giving the stick to be beaten. Most C++ die-hard fans would sneer at this description.

Re: Website message overhaul

2011-11-17 Thread Somedude
Le 15/11/2011 04:15, Jeff Nowakowski a écrit : Multi-paradigm is *not* a selling point. Explicit features are. This is one of these cases where you are arguing from a dead-end position. A reaction about marketing from your community cannot be explained away, because marketing is about about

Re: Website message overhaul

2011-11-17 Thread Somedude
Le 14/11/2011 22:38, Andrei Alexandrescu a écrit : I thought about these words for weeks. I could not find a more clear and concise way to state D's differentiating features. Andrei I don't have any problem with these words, but I don't like to see them repeated in the title. I think

Re: Website message overhaul

2011-11-17 Thread Xinok
On 11/13/2011 8:50 PM, Andrei Alexandrescu wrote: Walter and I have been working on the website for a while. We want to crystallize a clear message of what the D programming language is. Please take a look at http://d-programming-language.org/new/. The work is content-only (no significant

Re: D web server helper applications.

2011-11-17 Thread Trass3r
Am 17.11.2011, 14:02 Uhr, schrieb Steve Teale steve.te...@britseyeview.com: I've noticed this sort of thing mentioned a couple of times recently in conjunction with CGI. I did a D implementation of the AJP13 protocol some time ago. That is very easy to set up in Apache - you just follow the

Re: Website message overhaul

2011-11-17 Thread Trass3r
https://github.com/D-Programming-Language/d-programming-language.org/pull/33

Re: Why not extend array operations to full Fortran90 power ?

2011-11-17 Thread Timon Gehr
On 11/17/2011 07:48 PM, Xinok wrote: On 11/16/2011 2:08 PM, Joachim Wuttke j.wut...@fz-juelich.de wrote: (1) Y[] = X[]*X[]; (2) Y[] = sin( X[] ); I realized a problem with (2), it's actually not possible to rewrite it using existing constructs Yes it is. D is Turing Complete! because

Re: Website message overhaul

2011-11-17 Thread Jeff Nowakowski
On 11/17/2011 02:12 PM, Somedude wrote: It's geared towards programmers who may be interested in having a look, usually coming from other largely used imperative languages. And for most of these programmers, multi-paradigm means what Andrei said. My opinion is that most programmers don't give

Re: nan or -nan?

2011-11-17 Thread Iain Buclaw
On 16 November 2011 04:35, Ali Çehreli acehr...@yahoo.com wrote: Some floating point operations produce .nan: import std.stdio; void main() {    double zero = 0;    double infinity = double.infinity;    writeln(any expression with nan: , double.nan + 1);    writeln(    zero / zero      

Re: reddit discussion on article by bearophile

2011-11-17 Thread bearophile
Timon Gehr: Hmm. How would that work? A and B don't have an own type. Your program is equivalent to import std.stdio; enum A = 0; enum B = 1; void main() { writeln(B); // prints 1 because B is replaced with 1. } Right, my mental model of nameless enums was very wrong. I was

Re: nan or -nan?

2011-11-17 Thread bearophile
Iain Buclaw: This behaviour may be due to the libraries rather than the compiler. In any case there is a bug to be found an fixed. But whether the bit that controls signed-ness is on or off, doesn't stop the value being NaN. So I would not give much concern to the result. It's a NaN, but

Re: nan or -nan?

2011-11-17 Thread Walter Bright
On 11/17/2011 3:57 PM, bearophile wrote: It's a NaN, but floating point designers have given a sign to NaNs for a (small) purpose. What is that purpose?

Re: nan or -nan?

2011-11-17 Thread bearophile
Walter: On 11/17/2011 3:57 PM, bearophile wrote: It's a NaN, but floating point designers have given a sign to NaNs for a (small) purpose. What is that purpose? I didn't know the answer, so I've done a short research (finding texts like this:

Re: newsgroup web viewer

2011-11-17 Thread Adam D. Ruppe
Kagamin Wrote: Probably a unicode issue: the message is cut at the first non-ASCII character. The charset on that message is ISO-8859-1. Blargh. Phobos really needs some charset functions.

Re: newsgroup web viewer

2011-11-17 Thread Adam D. Ruppe
Adam D. Ruppe Wrote: Phobos really needs some charset functions. What I'd really like is for this to work: auto utf8string = to!string(string_in_some_other_charset, iso-8859-1); and it just works. It'd be good to have utf8 to the other charsets too, but that's not a high priority to me. The

Re: Website message overhaul

2011-11-17 Thread Andrei Alexandrescu
On 11/17/11 11:48 AM, Xinok wrote: I would suggest adding a single paragraph at the beginning which summarizes the language and it's benefits. It should be straight to the point. The first item on that page is type deduction, which isn't a good way to start. What type of language is it? It's a

Re: Website message overhaul

2011-11-17 Thread Andrei Alexandrescu
On 11/17/11 3:10 PM, Jeff Nowakowski wrote: On 11/17/2011 02:12 PM, Somedude wrote: It's geared towards programmers who may be interested in having a look, usually coming from other largely used imperative languages. And for most of these programmers, multi-paradigm means what Andrei said. My

Vote?

2011-11-17 Thread Jonathan M Davis
dsimcha did forget to put an end date on the voting for std.csv, but it started on Saturday, and votes have typically been about a week long, so the voting will presumably close sometime Saturday (Sunday at the latest), and yet only _two_ people have voted thus far. I don't know if we can even

Re: Website message overhaul

2011-11-17 Thread bearophile
Andrei Alexandrescu: What are its benefits? Higher productivity, fewer bugs, native speed, fast compilation. As opposed to other languages that have lower productivity, more bugs, less speed and slower compilation as goals. But they care for some things more than other ones. Python core

Re: reddit discussion on article by bearophile

2011-11-17 Thread Jesse Phillips
On Wed, 16 Nov 2011 22:59:35 +0100, Somedude wrote: Given that D boasts that you can choose to *not* use the GC, shouldn't Phobos strive to resort to manual memory management ? I supposed this has already been discussed, but just in case I missed the discussion, could someone give a link to

Re: reddit discussion on article by bearophile

2011-11-17 Thread Caligo
On Wed, Nov 16, 2011 at 10:57 AM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: http://www.reddit.com/r/**programming/comments/me6a5/** some_examples_of_strong_**static_typing_in_d/http://www.reddit.com/r/programming/comments/me6a5/some_examples_of_strong_static_typing_in_d/

Re: Website message overhaul

2011-11-17 Thread Xinok
On 11/17/2011 9:21 PM, Andrei Alexandrescu wrote: On 11/17/11 11:48 AM, Xinok wrote: What are its benefits? Higher productivity, fewer bugs, native speed, fast compilation. As opposed to other languages that have lower productivity, more bugs, less speed and slower compilation as goals.

Re: reddit discussion on article by bearophile

2011-11-17 Thread bearophile
Caligo: Those nested for-loops are painful to look at. I think they aren't so bad in that code. Problems like that can be solved with hard-coded code or with generic and more flexible code. The code shown is more toward hard-coded. Feel free to write a different solution, with fewer nested

Re: newsgroup web viewer

2011-11-17 Thread bcs
On 11/17/2011 05:04 AM, Kagamin wrote: bcs Wrote: Well you should be able to find feature list and screen shots from the available options. Anyone who is going to make an effort to write a NNTP client should really try out the existing one first. For that matter, most anyone who has the

Re: nan or -nan?

2011-11-17 Thread Walter Bright
On 11/17/2011 5:29 PM, bearophile wrote: Walter: On 11/17/2011 3:57 PM, bearophile wrote: It's a NaN, but floating point designers have given a sign to NaNs for a (small) purpose. What is that purpose? I didn't know the answer, so I've done a short research (finding texts like this:

Re: newsgroup web viewer

2011-11-17 Thread Walter Bright
On 11/17/2011 8:23 AM, Nick Sabalausky wrote: With all four points addressed, there would never be any good reason for anyone to ever use anything but NNTP. Your four points are all correct. My beef is that web forum software fixes all those, and yet utterly fails to reproduce what NNTP does

Re: Vote?

2011-11-17 Thread Jesse Phillips
On Thu, 17 Nov 2011 18:26:08 -0800, Jonathan M Davis wrote: dsimcha did forget to put an end date on the voting for std.csv, but it started on Saturday, and votes have typically been about a week long, so the voting will presumably close sometime Saturday (Sunday at the latest), and yet only

Re: newsgroup web viewer

2011-11-17 Thread Adam D. Ruppe
Walter Bright Wrote: 1. compact, threaded view You have to acknowledge that a lot of people don't see this as newsgroups getting it right. I'm completely opposed to it. (recursive*) Threaded views aren't just suboptimal. They are a *bad* thing. It was progress to ditch that misfeature, and it

Re: newsgroup web viewer

2011-11-17 Thread bcs
On 11/17/2011 09:02 PM, Adam D. Ruppe wrote: Walter Bright Wrote: 1. compact, threaded view You have to acknowledge that a lot of people don't see this as newsgroups getting it right. And you have to acknowledge that a significant of people do see this as getting it right. And because

Re: Website message overhaul

2011-11-17 Thread Andrei Alexandrescu
On 11/17/11 7:50 PM, Xinok wrote: On 11/17/2011 9:21 PM, Andrei Alexandrescu wrote: On 11/17/11 11:48 AM, Xinok wrote: What are its benefits? Higher productivity, fewer bugs, native speed, fast compilation. As opposed to other languages that have lower productivity, more bugs, less speed and

Re: Mutable enums

2011-11-17 Thread Steven Schveighoffer
On Wed, 16 Nov 2011 18:25:48 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 11/16/2011 11:39 PM, Timon Gehr wrote: I think this is a better solution: void foo2(T: ParameterTypeTuple!foo[0])(T t){foo(t);} Then it is just a matter of applying proper value range propagation for IFTY: void

Re: Mutable enums

2011-11-17 Thread Steven Schveighoffer
On Wed, 16 Nov 2011 17:39:16 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 11/16/2011 10:56 PM, Steven Schveighoffer wrote: On Wed, 16 Nov 2011 16:16:48 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 11/16/2011 09:00 PM, Steven Schveighoffer wrote: On Wed, 16 Nov 2011 14:26:57 -0500, Timon

Using __traits(getMember...) in alias statement

2011-11-17 Thread Tobias Pankrath
It would be cool, if the following would be possible. immutable string MemberID = M; struct A {} struct B { alias A M; } template Member(T) { static if(__traits(hasMember, T, MemberID)) { alias __traits(getMember, T, MemberID) Member; } else alias

Re: Mutable enums

2011-11-17 Thread Timon Gehr
On 11/17/2011 03:19 PM, Steven Schveighoffer wrote: On Wed, 16 Nov 2011 17:39:16 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 11/16/2011 10:56 PM, Steven Schveighoffer wrote: On Wed, 16 Nov 2011 16:16:48 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 11/16/2011 09:00 PM, Steven

Re: Using __traits(getMember...) in alias statement

2011-11-17 Thread Timon Gehr
On 11/17/2011 06:12 PM, Tobias Pankrath wrote: It would be cool, if the following would be possible. immutable string MemberID = M; struct A {} struct B { alias A M; } template Member(T) { static if(__traits(hasMember, T, MemberID)) { alias __traits(getMember, T,

Re: Using __traits(getMember...) in alias statement

2011-11-17 Thread Tobias Pankrath
This helps a lot with the current state of affairs: template ID(alias x){alias x ID;} It will even allow funny things like this: alias ID!((a,b){return a+b;}) add; static assert(add(1,2) == 3); Nice to know, thanks!

Re: Using __traits(getMember...) in alias statement

2011-11-17 Thread Timon Gehr
On 11/17/2011 06:41 PM, Timon Gehr wrote: On 11/17/2011 06:12 PM, Tobias Pankrath wrote: It would be cool, if the following would be possible. immutable string MemberID = M; struct A {} struct B { alias A M; } template Member(T) { static if(__traits(hasMember, T, MemberID)) { alias

Re: Mutable enums

2011-11-17 Thread Steven Schveighoffer
On Thu, 17 Nov 2011 12:31:58 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 11/17/2011 03:19 PM, Steven Schveighoffer wrote: What does writelnInferConst!T do? I'm afraid I'm not getting what you are saying. I was thinking writeln should do this: void writeln(T...)(const T args) {...} As

Re: Mutable enums

2011-11-17 Thread Timon Gehr
On 11/17/2011 07:23 PM, Steven Schveighoffer wrote: On Thu, 17 Nov 2011 12:31:58 -0500, Timon Gehr timon.g...@gmx.ch wrote: On 11/17/2011 03:19 PM, Steven Schveighoffer wrote: What does writelnInferConst!T do? I'm afraid I'm not getting what you are saying. I was thinking writeln should

Threads and OwnerTerminated

2011-11-17 Thread Andrej Mitrovic
This is an example from TDPL: import std.concurrency; import std.exception; import std.stdio; void main() { auto low = 0; auto high = 100; auto tid = spawn(writer); foreach (i; low .. high) { writeln(Main thread: , i); tid.send(thisTid, i);

Re: Threads and OwnerTerminated

2011-11-17 Thread Andrej Mitrovic
Ah, I should have read the following parts where it describes thread termination, in TDPL. Woops. On 11/17/11, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: This is an example from TDPL: import std.concurrency; import std.exception; import std.stdio; void main() { auto low = 0;

Re: Threads and OwnerTerminated

2011-11-17 Thread Jonathan M Davis
On Thursday, November 17, 2011 11:56 Andrej Mitrovic wrote: This is an example from TDPL: import std.concurrency; import std.exception; import std.stdio; void main() { auto low = 0; auto high = 100; auto tid = spawn(writer); foreach (i; low .. high) { writeln(Main thread: , i);

Make setMaxMailboxSize a property of a Tid?

2011-11-17 Thread Andrej Mitrovic
I've had this bug recently: auto workTid = spawn(work); setMaxMailboxSize(thisTid, 1, OnCrowding.throwException); IOW, I've passed 'thisTid' instead of 'workTid' to the call. Is there any reason why had to be a global function? Tid has a private MessageBox which has the setMaxMsgs method. We

Re: Generic array

2011-11-17 Thread RenatoL
Ok, tk u all. I guess this is a very poor approach if we are looking for performance

Re: Generic array

2011-11-17 Thread Jonathan M Davis
On Thursday, November 17, 2011 14:41 RenatoL wrote: Ok, tk u all. I guess this is a very poor approach if we are looking for performance Mixing types like that in an array is not a normal thing to do. However, if you're looking to hold a specific number of items of diverse types

[Issue 6965] New: [CTFE] wrong reset of variable

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6965 Summary: [CTFE] wrong reset of variable Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD

[Issue 4998] make IFTI use the template constraint when determining the type of literals

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4998 --- Comment #1 from Steven Schveighoffer schvei...@yahoo.com 2011-11-17 06:35:08 PST --- I will add that the simple example has a simpler solution, but the real problem (of wrapping arbitrary overload sets) is not solved that way. Reforming

[Issue 6966] New: cannot create qualified type from tuple entry

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6966 Summary: cannot create qualified type from tuple entry Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2

[Issue 6966] cannot create qualified type from tuple entry

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6966 --- Comment #1 from timon.g...@gmx.ch 2011-11-17 07:30:25 PST --- Workaround: template XImpl(T...){ alias T[0] _; alias const(_) X; } template X(T...){alias XImpl!T.X X;} static assert(is(X!(int) == const(int))); // pass --

[Issue 6967] New: template instantiation depends an pragma(msg, T.stringof) if __traits is used

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6967 Summary: template instantiation depends an pragma(msg, T.stringof) if __traits is used Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW

[Issue 6940] immutable(int*)* and int** do not combine

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6940 --- Comment #2 from timon.g...@gmx.ch 2011-11-17 11:40:16 PST --- (In reply to comment #1) static assert(is(typeof(x) : const(int*)*)); // ok static assert(is(typeof(a) : const(int[])[])); // ok I think these two lines should not

[Issue 4251] Hole in the type system: Base type reference can be assigned to subtype reference (Super* is treated as a supertype of Sub*)

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4251 timon.g...@gmx.ch changed: What|Removed |Added CC||timon.g...@gmx.ch

[Issue 6968] New: Segmantation fault, if exclamation mark absent

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6968 Summary: Segmantation fault, if exclamation mark absent Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2

[Issue 6916] writeln of nameless enum

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6916 bearophile_h...@eml.cc changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 6969] New: Forward reference on template class triangle

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6969 Summary: Forward reference on template class triangle Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity:

[Issue 6184] missing REX.W on certain array compares

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6184 d...@dawgfoto.de changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Issue 5364] optimizer kills high dword of -1

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

[Issue 5364] optimizer kills high dword of -1

2011-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5364 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|RESOLVED|REOPENED