[Issue 19248] Wrong mangle for C++ const STL classes/structs

2018-09-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19248 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/9cb46f842778b3b7d3cb4efe698c32765fd72220 fix Issue 19248

[Issue 19248] Wrong mangle for C++ const STL classes/structs

2018-09-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19248 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 19248] Wrong mangle for C++ const STL classes/structs

2018-09-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19248 --- Comment #2 from Илья Ярошенко --- related bug https://issues.dlang.org/show_bug.cgi?id=18957 --

[Issue 19248] Wrong mangle for C++ const STL classes/structs

2018-09-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19248 Илья Ярошенко changed: What|Removed |Added Severity|blocker |regression --

[Issue 19248] Wrong mangle for C++ const STL classes/structs

2018-09-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19248 --- Comment #1 from Илья Ярошенко --- https://github.com/dlang/dmd/pull/8700 --

[Issue 19248] Wrong mangle for C++ const STL classes/structs

2018-09-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19248 Илья Ярошенко changed: What|Removed |Added Keywords||C++ --

[Issue 19248] New: Wrong mangle for C++ const STL classes/structs

2018-09-15 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19248 Issue ID: 19248 Summary: Wrong mangle for C++ const STL classes/structs Product: D Version: D2 Hardware: All OS: Linux Status: NEW Severity: blocker

[Issue 3189] `std.conv.to` : check for a custom `to` method in classes/structs

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3189 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|future |D2 --

[Issue 3466] Wrong JSON output for templated classes, structs, and interfaces

2013-01-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3466 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3466] Wrong JSON output for templated classes, structs, and interfaces

2013-01-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3466 --- Comment #3 from Walter Bright bugzi...@digitalmars.com 2013-01-19 23:20:52 PST --- https://github.com/D-Programming-Language/dmd/pull/1517 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

Re: classes structs

2012-09-20 Thread Timon Gehr
On 09/20/2012 03:43 AM, David Currie wrote: On Tuesday, 18 September 2012 at 18:42:33 UTC, Timon Gehr wrote: On 09/18/2012 07:07 AM, David Currie wrote: [ALL CAPS] It does not matter who is the loudest guy in the room. If you have a point to make, just make it. (Stating the conclusion is not

Re: classes structs

2012-09-19 Thread David Currie
On Tuesday, 18 September 2012 at 18:42:33 UTC, Timon Gehr wrote: On 09/18/2012 07:07 AM, David Currie wrote: [ALL CAPS] It does not matter who is the loudest guy in the room. If you have a point to make, just make it. (Stating the conclusion is not making a point. Skipping forward and

Re: classes structs

2012-09-19 Thread Jesse Phillips
I just wanted to reiterate what Steven has said here. If you will learn D with a plan to change it to your desires, you will be disappointed. That is not to say give no feedback, or attempt no change. For one, you are coming in way to late for a good number of changes (including when we go to

Re: classes structs

2012-09-19 Thread Nathan M. Swan
On Thursday, 20 September 2012 at 01:42:26 UTC, David Currie wrote: On Tuesday, 18 September 2012 at 18:42:33 UTC, Timon Gehr wrote: On 09/18/2012 07:07 AM, David Currie wrote: [ALL CAPS] It does not matter who is the loudest guy in the room. If you have a point to make, just make it.

Re: classes structs

2012-09-18 Thread Steven Schveighoffer
On Tue, 18 Sep 2012 01:07:43 -0400, David Currie curri...@iinet.net.au wrote: On Saturday, 15 September 2012 at 10:58:07 UTC, Jonathan M Davis wrote: I haven't announced to regular viewers that I STARTED these issues by writing direct to Walter (twice) that I had some language extension

Re: classes structs

2012-09-18 Thread Timon Gehr
On 09/18/2012 07:07 AM, David Currie wrote: [ALL CAPS] It does not matter who is the loudest guy in the room. If you have a point to make, just make it. (Stating the conclusion is not making a point. Skipping forward and predicting polite refusal does not help.) Most of the statements in the

Re: classes structs

2012-09-17 Thread David Currie
On Saturday, 15 September 2012 at 10:58:07 UTC, Jonathan M Davis wrote: Classes are polymorphic. They have inheritance and virtual functions. Polymorphism makes no sense with a variable on the stack. Having inheritance with objects on the stack risks object slicing (

Re: classes structs

2012-09-15 Thread Simen Kjaeraas
On Sat, 15 Sep 2012 00:19:07 +0200, David Currie curri...@iinet.net.au wrote: [Snip] Because D is not C++. -- Simen

Re: classes structs

2012-09-15 Thread Jonathan M Davis
On Saturday, September 15, 2012 00:19:07 David Currie wrote: At the risk of appearing ignorant, I don't know everything about D. However in D I have noticed the following. It is a policy decision in D that a class is ALWAYS on the heap and passed by REFERENCE. (I know there is a keyword to

Re: classes structs

2012-09-15 Thread Jonathan M Davis
On Saturday, September 15, 2012 03:58:50 Jonathan M Davis wrote: You can like it or not, but separating structs and classes and making classes reference types on the heap is a design decision based on the best practices and common bugs in C++. And it works very well. Upon occasion, it can be

Re: classes structs

2012-09-15 Thread Simen Kjaeraas
On Sat, 15 Sep 2012 13:05:47 +0200, Jonathan M Davis jmdavisp...@gmx.com wrote: if you really need the extra speed of a variable not being initialized when it's declared, then you can initialize it to void. It's also worth noting that default-initialization may be elided when the optimizer

classes structs

2012-09-14 Thread David Currie
At the risk of appearing ignorant, I don't know everything about D. However in D I have noticed the following. It is a policy decision in D that a class is ALWAYS on the heap and passed by REFERENCE. (I know there is a keyword to put a class object on the stack but this is not facile and

Re: classes structs

2012-09-14 Thread bearophile
On Friday, 14 September 2012 at 22:18:57 UTC, David Currie: Could you answer me WHY?? Take a look at the D FAQ, maybe some of your questions are answered there, this will save some time to people here. And your questions that are missing in the FAQ are better added there, because they are

Re: classes structs

2012-09-14 Thread Piotr Szturmaj
David Currie wrote: At the risk of appearing ignorant, I don't know everything about D. However in D I have noticed the following. It is a policy decision in D that a class is ALWAYS on the heap and passed by REFERENCE. (I know there is a keyword to put a class object on the stack but this is

[Issue 3466] Wrong JSON output for templated classes, structs, and interfaces

2012-03-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3466 Matt Peterson revcompg...@gmail.com changed: What|Removed |Added CC|

Re: enum with classes/structs

2011-03-11 Thread useo
== Auszug aus Jonathan M Davis (jmdavisp...@gmx.com)'s Artikel On Thursday, March 10, 2011 11:28:04 bearophile wrote: useo: is it possible to declare a enum where all entries are instances of a class (or struct), like the following: I don't think so. Enums are compile-time constants.

Re: enum with classes/structs

2011-03-10 Thread Simen kjaeraas
useo u...@start.bg wrote: Hey guys, is it possible to declare a enum where all entries are instances of a class (or struct), like the following: class a { ... public this(uint i) { ... } ... } enum myEnum : a { entry1 = new a(0); entry2 = new a(1); } ... or does

Re: enum with classes/structs

2011-03-10 Thread Trass3r
... or does enumerations only support constant-expressions? Thanks! Yep, enum is a compile-time thing.

Re: enum with classes/structs

2011-03-10 Thread Jonathan M Davis
On Thursday, March 10, 2011 11:15:25 useo wrote: Hey guys, is it possible to declare a enum where all entries are instances of a class (or struct), like the following: class a { ... public this(uint i) { ... } ... } enum myEnum : a { entry1 = new a(0);

Re: enum with classes/structs

2011-03-10 Thread bearophile
useo: is it possible to declare a enum where all entries are instances of a class (or struct), like the following: I don't think so. Enums are compile-time constants. This code doesn't compile: class A { this(uint i) {} } enum myEnum : A { entry1 = new A(0), entry2 = new A(1) } void

Re: enum with classes/structs

2011-03-10 Thread Andrej Mitrovic
There's also this bug where the constructor for a struct isn't called: http://d.puremagic.com/issues/show_bug.cgi?id=5460 , and field assignment is not disabled even with the presence of a constructor.

Re: enum with classes/structs

2011-03-10 Thread Andrej Mitrovic
*I mean construction via field-by-field assignment. (I made the same typo in the bug report, lol).

Re: enum with classes/structs

2011-03-10 Thread Jonathan M Davis
On Thursday, March 10, 2011 11:28:04 bearophile wrote: useo: is it possible to declare a enum where all entries are instances of a class (or struct), like the following: I don't think so. Enums are compile-time constants. This code doesn't compile: class A { this(uint i) {} }

detecting classes, structs, arrays in templates

2011-01-23 Thread Luke J. West
Hi, I want to specialize a template function - call it print() - for three cases: classes, structs and arrays. Ideally I'd like something that looks 'functional' like a proper specialization, but perhaps I need to use static if. I'm still at the beginning of my journey with D so I'd be grateful

Re: detecting classes, structs, arrays in templates

2011-01-23 Thread Simen kjaeraas
Luke J. West l...@west.me.uk wrote: Hi, I want to specialize a template function - call it print() - for three cases: classes, structs and arrays. Ideally I'd like something that looks 'functional' like a proper specialization, but perhaps I need to use static if. I'm still at the beginning

Re: detecting classes, structs, arrays in templates

2011-01-23 Thread bearophile
Luke J. West: Hi, I want to specialize a template function - call it print() - for three cases: classes, structs and arrays. Ideally I'd like something that looks 'functional' like a proper specialization, but perhaps I need to use static if. I'm still at the beginning of my journey with D

Re: detecting classes, structs, arrays in templates

2011-01-23 Thread Luke J. West
Thanks for that bearophile - I'll get myself subscribed right away. Bye for now, Luke On Sun, 23 Jan 2011 09:17:05 -0500, bearophile bearophileh...@lycos.com said: Luke J. West: Hi, I want to specialize a template function - call it print() - for three cases: classes, structs

[Issue 5107] Const-shared classes/structs not typed as shared

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

[Issue 5107] New: Const-shared classes/structs not typed as shared

2010-10-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5107 Summary: Const-shared classes/structs not typed as shared Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: patch, rejects-valid Severity

[Issue 3466] Wrong JSON output for templated classes, structs, and interfaces

2010-07-03 Thread d-bugmail
...@gmail.com Summary|Wrong JSON output for |Wrong JSON output for |templated classes and |templated classes, structs, |structs |and interfaces --- Comment #1 from Simen Kjaeraas simen.kja...@gmail.com 2010-07-03 06:29:45

dcollections ArrayList conating array of classes/structs

2010-06-30 Thread BLS
Hi, IMHO ArrayList has a bug. Just declaring ArrayList!B bl, raises an error. But maybe I am wrong.. Nevertheless I 've filed a ticket. In case that I switch from class to struct also std.algorithm is involved. class AListTest { alias ArrayList!B BList; BList bl;

[Issue 3189] `std.conv.to` : check for a custom `to` method in classes/structs

2009-08-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3189 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 3189] `std.conv.to` : check for a custom `to` method in classes/structs

2009-07-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3189 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|NEW |ASSIGNED

[Issue 3189] New: `std.conv.to` : check for a custom `to` method in classes/structs

2009-07-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3189 Summary: `std.conv.to` : check for a custom `to` method in classes/structs Product: D Version: future Platform: All OS/Version: All Status: NEW Severity