Re: why doesn't formattedRead take args by ref instead of by pointer?

2013-05-20 Thread Timothee Cour
That was indeed what I was using in my updated ref based reimplementation of formattedRead (see my original post for the link), and the other functions getopt, readf) are the same AFAIK. so why not add it to phobos: it's safer (no null / invalid pointers) simpler user code more consistent with

irrelevant compiler error messages: should stop semantic3 passes after 1st error is encountered

2013-05-20 Thread Timothee Cour
In a number of cases I get very large compile error messages after running rdmd main_module.d Upon inspection, running rdmd -v fun.d reveals that the irrelevant error messages are in different semantic3 passes: semantic3 module_with_relevant_error relevant error (eg: Error: no property 'x' for

support UFCS with fully qualified function names

2013-05-20 Thread Timothee Cour
I'd like to be able to use UFCS with fully qualified function names. A typical use case is to disambiguate , as in the following case: import std.path; import std.string; void main(){ //Error: std.path.join()(const(char)[] p1, const(char)[] p2, const(char[ ])[] more...) at ... conflicts

Re: support UFCS with fully qualified function names

2013-05-20 Thread bearophile
Timothee Cour: I'd like to be able to use UFCS with fully qualified function names. auto a=.(std.path.join)(\n); It seems an acceptably-looking syntax. But maybe D.learn is not the best place to discuss new D syntax. Regarding new UFCS-related syntax, I sometimes wish for: alias T

Re: support UFCS with fully qualified function names

2013-05-20 Thread bearophile
Timothee Cour: auto a=.(std.path.join)(\n); I suggest to present it in the main D newsgroup. And if people don't hate it, to later write an enhancement request in bugzilla. Bye, bearophile

Re: Started to get 'Previous Definition Different' linking errors when compiling in debug mode

2013-05-20 Thread evilrat
On Monday, 20 May 2013 at 13:07:06 UTC, MrSmith wrote: On Monday, 20 May 2013 at 12:42:50 UTC, evilrat wrote: do you have referenced projects in xamarin? if so, any time you change something in one of such projects you need to rebuild whole solution, that one of many reasons why i don't use

Re: Started to get 'Previous Definition Different' linking errors when compiling in debug mode

2013-05-20 Thread evilrat
On Sunday, 19 May 2013 at 11:37:54 UTC, MrSmith wrote: I am using Derelict for my GUI project and after moving to the newest version i am getting following errors. These errors are occuring in debug mode only. wait, are you using 2.063 beta?

undefined identifier doesn't make sense

2013-05-20 Thread Enjoys Math
Here's Gui.d: module Gui; private import gtk.MainWindow; private import ProjectFile; // @@TODO: remove private import gtk.Label; class Gui : MainWindow { private: ProjectFile* proj; public: this() { super(Our Audio Synth App);

Enum of types

2013-05-20 Thread Diggory
I want to create an enum of some number of types, eg. { ubyte, ushort, uint, float } It should be straightforward to get a member of the enum from the type itself. Basically I have an object that stores some typed data, but the type may not be known at compile time, only the set of possible

Re: undefined identifier doesn't make sense

2013-05-20 Thread Enjoys Math
On Tuesday, 21 May 2013 at 03:15:46 UTC, Anthony Goins wrote: ?? ProjectFile.ProjectFile.loadLastProjectOrNew() ?? maybe. That did it!!! Lol crazy. :D Thx

Re: undefined identifier doesn't make sense

2013-05-20 Thread Enjoys Math
Should I put my static methods at module scope then?

Re: Enum of types

2013-05-20 Thread Ali Çehreli
On 05/20/2013 08:20 PM, Diggory wrote: I want to create an enum of some number of types, eg. { ubyte, ushort, uint, float } It should be straightforward to get a member of the enum from the type itself. Basically I have an object that stores some typed data, but the type may not be known at

Re: undefined identifier doesn't make sense

2013-05-20 Thread evilrat
On Tuesday, 21 May 2013 at 04:17:26 UTC, Enjoys Math wrote: Should I put my static methods at module scope then? just don't give symbol(struct/class/function/variable) names same as module

Re: Enum of types

2013-05-20 Thread Diggory
On Tuesday, 21 May 2013 at 04:36:57 UTC, Ali Çehreli wrote: Sounds like std.variant.Algebraic: http://dlang.org/phobos/std_variant.html#.Algebraic Ali I don't see how I could use that. Algebraic is for storing a value, I'm trying to store just a type.

Re: why doesn't formattedRead take args by ref instead of by pointer?

2013-05-20 Thread Dmitry Olshansky
21-May-2013 01:39, Timothee Cour пишет: That was indeed what I was using in my updated ref based reimplementation of formattedRead (see my original post for the link), and the other functions getopt, readf) are the same AFAIK. so why not add it to phobos: it's safer (no null / invalid pointers)

Re: Enum of types

2013-05-20 Thread Ali Çehreli
On 05/20/2013 09:58 PM, Diggory wrote: On Tuesday, 21 May 2013 at 04:36:57 UTC, Ali Çehreli wrote: Sounds like std.variant.Algebraic: http://dlang.org/phobos/std_variant.html#.Algebraic Ali I don't see how I could use that. Algebraic is for storing a value, I'm trying to store just a

[Issue 10120] @disable this(); and switch statement

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10120 Maxim Fomin ma...@maxim-fomin.ru changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4575] Uses of deprecated delete statement in D2 Phobos

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4575 Jameson beatgam...@gmail.com changed: What|Removed |Added CC||beatgam...@gmail.com

[Issue 10116] stdio.File.byLine repeats last line forever, readln(ref C[], R) returns bad data

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10116 fw..vd...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 5176] Limit static object sizes

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5176 sibaqexozequg...@tempomail.fr changed: What|Removed |Added CC|

[Issue 5176] Limit static object sizes

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5176 --- Comment #29 from deadalnix deadal...@gmail.com 2013-05-20 01:07:53 PDT --- (In reply to comment #28) Copying my comment from the forums so it won't get lost: (http://forum.dlang.org/post/fuqkpmkfdjxwgmzfi...@forum.dlang.org) Isn't the

[Issue 5176] Limit static object sizes

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5176 --- Comment #30 from sibaqexozequg...@tempomail.fr 2013-05-20 01:13:22 PDT --- (In reply to comment #29) The thing is that you may get over the page protection by several dereferences. What do you mean by several dereferences? Can you

[Issue 5176] Limit static object sizes

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5176 --- Comment #31 from deadalnix deadal...@gmail.com 2013-05-20 01:26:56 PDT --- (In reply to comment #30) (In reply to comment #29) The thing is that you may get over the page protection by several dereferences. What do you mean by

[Issue 5176] Limit static object sizes

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5176 --- Comment #32 from sibaqexozequg...@tempomail.fr 2013-05-20 02:08:00 PDT --- (In reply to comment #31) Yes sure. Let's consider the example below : struct Foo { ubyte[512] bar; } struct Buzz { ubyte[256] pad;

[Issue 3820] Small hole in switch semantics

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3820 --- Comment #7 from Martin Nowak c...@dawg.eu 2013-05-20 03:20:58 PDT --- IIRC this switch is implemented as below. Unless we expect the block to always run, as in comment 3, it's difficult to fix. int foo(int a) { switch (var) {

[Issue 10122] New: `Appender` doesn't work with disabled default construction

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10122 Summary: `Appender` doesn't work with disabled default construction Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major

[Issue 10123] New: Can't subtract positive number from length of array of struct with disabled default construction

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10123 Summary: Can't subtract positive number from length of array of struct with disabled default construction Product: D Version: D2 Platform: All OS/Version: All

[Issue 10123] Can't subtract positive number from length of array of struct with disabled default construction

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10123 --- Comment #1 from Denis Shelomovskij verylonglogin@gmail.com 2013-05-20 15:53:15 MSD --- Looks like Issue 10124 have to be fixed first. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 10125] New: readln!dchar misdecodes Unicode non-BMP

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10125 Summary: readln!dchar misdecodes Unicode non-BMP Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 10125] readln!dchar misdecodes Unicode non-BMP

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10125 --- Comment #1 from fw..vd...@gmail.com 2013-05-20 05:33:52 PDT --- queued pull request #1296 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 5176] Limit static object sizes

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5176 --- Comment #33 from Andrei Alexandrescu and...@erdani.com 2013-05-20 05:34:03 PDT --- (In reply to comment #32) Buzz* b; auto deref1 = (b.qux[7]); // take address below 4kb. deref1.bar[300] = 0; // offset is bellow 4kb, but the address

[Issue 5176] Limit static object sizes

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5176 --- Comment #35 from Andrei Alexandrescu and...@erdani.com 2013-05-20 06:05:16 PDT --- (In reply to comment #34) (In reply to comment #33) (In reply to comment #32) Buzz* b; auto deref1 = (b.qux[7]); // take address below 4kb.

[Issue 9044] dmd sometimes produces object files with multiple definitions

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9044 Rainer Schuetze r.sagita...@gmx.de changed: What|Removed |Added CC||r.sagita...@gmx.de

[Issue 10106] [ICE] Ice in glue.c:1215 + 2 error messages without lines

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10106 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #2

[Issue 10122] `Appender` doesn't work with disabled default construction

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10122 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 10122] `Appender` doesn't work with disabled default construction

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10122 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, rejects-valid

[Issue 10103] template mixin with property overloads

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10103 --- Comment #2 from github-bugzi...@puremagic.com 2013-05-20 09:13:01 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd

[Issue 10103] template mixin with property overloads

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10103 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 8074] template-mixin example contradicts text

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8074 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment

[Issue 7549] typeof of overloaded function picks the lexically first one

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7549 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment

[Issue 7549] typeof of overloaded function picks the lexically first one

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7549 --- Comment #6 from timon.g...@gmx.ch 2013-05-20 12:06:39 PDT --- (In reply to comment #2) I agree with your design. Actually, I think is(typeof(foo)) should be consistent with whether or not foo compiles. -- Configure issuemail:

[Issue 10122] `Appender` doesn't work with disabled default construction

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10122 --- Comment #2 from github-bugzi...@puremagic.com 2013-05-20 12:12:50 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 10122] `Appender` doesn't work with disabled default construction

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10122 --- Comment #3 from github-bugzi...@puremagic.com 2013-05-20 12:14:17 PDT --- Commit pushed to 2.063 at https://github.com/D-Programming-Language/phobos

[Issue 10122] `Appender` doesn't work with disabled default construction

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

[Issue 5229] Inaccurate parsing of floating-point literals

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5229 David Nadlinger c...@klickverbot.at changed: What|Removed |Added CC|

[Issue 5229] Inaccurate parsing of floating-point literals

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5229 --- Comment #5 from Maxime Chevalier-Boisvert maximechevali...@gmail.com 2013-05-20 14:51:28 PDT --- (In reply to comment #4) @Lars: If she is using DMD on Windows, the root cause might in fact be the same. It turned out to be a problem

[Issue 10106] [ICE] Ice in glue.c:1215 + 2 error messages without lines

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10106 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 10106] [ICE] Ice in glue.c:1215 + 2 error messages without lines

2013-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10106 --- Comment #4 from Dmitry Olshansky dmitry.o...@gmail.com 2013-05-20 22:48:54 PDT --- (In reply to comment #3) Fix assert fail: https://github.com/D-Programming-Language/dmd/pull/2055 Why the test is 'fail compilation' when it did

<    1   2   3