Re: Sorting char arrays

2012-03-12 Thread Magnus Lie Hetland
On 2012-03-12 13:56:15 +, bearophile said: It's not a bug, char is meant to be a UTF-8. Right. Two workarounds: Thanks. I'm doing the sorting in a template, so this won't work -- but I guess I just can't use char as a type parameter to my template either, then :) -- Magnus Lie

Re: Tempfiles in unittests

2012-03-12 Thread H. S. Teoh
On Mon, Mar 12, 2012 at 01:54:08PM +0100, Magnus Lie Hetland wrote: On 2012-03-11 21:14:59 +, Jonathan M Davis said: So, as far as Phobos' unit tests are concerned, there's not really any need for what you're trying to do. Sure. Just would have thought that maybe some unit-testing D

Why doesn't this have a length?

2012-03-12 Thread Magnus Lie Hetland
In a template class (with State and Input as template parameters), I have the following (private) member: State[][Tuple!(const(State), const(Input))] transitions; It works well enough, but for some reason I can't access its length attribute...? (If I define other simpler, similar private

Re: Why doesn't this have a length?

2012-03-12 Thread bearophile
Magnus Lie Hetland: Am I doing something illegal?-) It looks legal. As usual I suggest to minimize the code, and show us the reduced case that shows the problem :-) Bye, bearophile

Re: Sorting char arrays

2012-03-12 Thread Jonathan M Davis
On Monday, March 12, 2012 16:04:37 Magnus Lie Hetland wrote: On 2012-03-12 13:09:18 +, Dmitry Olshansky said: Mm it should perform sort on UTF-8 buffer? Humm -- dunno ;) The UTF-8-semantics of single characters sort of slipped my mind :) Tricky thing but worths an enhancement

Re: Assert and the optional Message

2012-03-12 Thread Jonathan M Davis
On Monday, March 12, 2012 09:40:44 Jacob Carlborg wrote: On 2012-03-11 22:12, Jonathan M Davis wrote: On Sunday, March 11, 2012 13:13:58 Jacob Carlborg wrote: Yeah, exactly. And it feels a bit stupid to duplicate the assert statement just to throw something that isn't an AssertError.

Re: Why doesn't this have a length?

2012-03-12 Thread Ali Çehreli
On 03/12/2012 08:59 AM, bearophile wrote: Magnus Lie Hetland: Am I doing something illegal?-) It looks legal. As usual I suggest to minimize the code, and show us the reduced case that shows the problem :-) Bye, bearophile Let's please also see the exact error message. an error message

Re: Sorting char arrays

2012-03-12 Thread Ali Çehreli
On 03/12/2012 08:06 AM, Magnus Lie Hetland wrote: On 2012-03-12 13:56:15 +, bearophile said: It's not a bug, char is meant to be a UTF-8. Right. Two workarounds: Thanks. I'm doing the sorting in a template, so this won't work -- but I guess I just can't use char as a type parameter

Re: Why doesn't this have a length?

2012-03-12 Thread Andrej Mitrovic
On 3/12/12, Ali Çehreli acehr...@yahoo.com wrote: Let's please also see the exact error message. an error message that seems to indicate that DMD is looking for a global identifier is not clear to mortals like myself. :) He probably means something like this: struct State { } struct Input { }

Re: Assert and the optional Message

2012-03-12 Thread Jacob Carlborg
On 2012-03-12 15:08, Steven Schveighoffer wrote: My thoughts on assert/unit test: 1. AssertError (and any other Error) should not be caught by normal user code. Ever. It should only be caught by the runtime. However, the handler in the runtime could provide a hook specific to the OS/application

Re: Why doesn't this have a length?

2012-03-12 Thread Simen Kjærås
On Mon, 12 Mar 2012 19:20:07 +0100, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: On 3/12/12, Ali Çehreli acehr...@yahoo.com wrote: Let's please also see the exact error message. an error message that seems to indicate that DMD is looking for a global identifier is not clear to mortals

[Issue 4507] use spellchecker when override function doesn't override anything

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4507 --- Comment #2 from github-bugzi...@puremagic.com 2012-03-12 00:40:47 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd

[Issue 4507] use spellchecker when override function doesn't override anything

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4507 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Keywords||pull

[Issue 5879] Not all frontend errors use stderr

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5879 --- Comment #3 from github-bugzi...@puremagic.com 2012-03-12 01:02:48 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd

[Issue 1750] RegExp: lack of support for wchar, dchar; lack of lookingAt() method

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1750 Dmitry Olshansky dmitry.o...@gmail.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 6290] GC breaks if a thread is allocated on Mac OSX

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

[Issue 7679] std.regex.split and splitter don't work w/ ctRegex

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7679 Dmitry Olshansky dmitry.o...@gmail.com changed: What|Removed |Added CC|

[Issue 1772] regexp.split behavior with captures needs to be documented

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1772 --- Comment #4 from Dmitry Olshansky dmitry.o...@gmail.com 2012-03-12 03:28:16 PDT --- https://github.com/D-Programming-Language/phobos/pull/491 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 4250] std.regex does not support character sets other than unicode

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4250 Dmitry Olshansky dmitry.o...@gmail.com changed: What|Removed |Added CC|

private struct's destructor causes internal error during compilation

2012-03-12 Thread Sharp
Hi all! Sorry, my english is poor, so the compiler output and the source code will talk instead of me :) I have DMD v2.057 code d:\D\dmd2\windows\bin\dmd.exe -c installer\functions.d -ofD:\D\projects\ikonboard\ikonboarD\obj\Debug\functions.obj -Id:\D\dmd2\src\phobos

[Issue 5668] std.regex.Captures is not documented

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5668 Dmitry Olshansky dmitry.o...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4287] opOpAssign!(~=) for std.array.Appender

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4287 --- Comment #3 from bearophile_h...@eml.cc 2012-03-12 05:37:11 PDT --- See a discussion thread here, where I have suggested to give Appenhder both put method and a ~= operator:

[Issue 7630] declaration in switch scope not initialized + CTFE error

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

[Issue 3820] Small hole in switch semantics

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3820 d...@dawgfoto.de changed: What|Removed |Added CC||d...@dawgfoto.de --- Comment #4

[Issue 3820] Small hole in switch semantics

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3820 --- Comment #5 from d...@dawgfoto.de 2012-03-12 07:37:28 PDT --- You can only execute that block with a goto or a loop. The initialization should happen anyhow. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email

[Issue 7693] New: Getopt Ignores Trailing Characters on Enums

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7693 Summary: Getopt Ignores Trailing Characters on Enums Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 6106] Keep track of changes during replace function

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6106 josvanu...@gmail.com changed: What|Removed |Added Priority|P2 |P5 -- Configure issuemail:

[Issue 7694] New: Internal error: e2ir.c 1251 when calling member function inside struct via alias param

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7694 Summary: Internal error: e2ir.c 1251 when calling member function inside struct via alias param Product: D Version: D2 Platform: All OS/Version: All Status: NEW

Re: private struct's destructor causes internal error during compilation

2012-03-12 Thread Kapps
On Monday, 12 March 2012 at 10:58:25 UTC, Sharp wrote: Hi all! Sorry, my english is poor, so the compiler output and the source code will talk instead of me :) I have DMD v2.057 In the db.d, if I remove the PreparedStatement's destructor, it compiles. Here's the source code:

[Issue 7509] Allow SIMD variable contents to have all their values changed to a single float variable

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7509 --- Comment #2 from junk.nebs...@gmail.com 2012-03-12 18:33:42 PDT --- How should something like this be done then on other architectures? I'm creating a matrix multiplication library and I tried using a value like this and it didn't work. I

[Issue 7695] New: ICE on associative array with keys of struct type with const members

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7695 Summary: ICE on associative array with keys of struct type with const members Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity:

[Issue 3509] Cannot forward reference a template mixin's members in a compile-time context

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3509 --- Comment #1 from github-bugzi...@puremagic.com 2012-03-12 19:28:22 PDT --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

[Issue 3509] Cannot forward reference a template mixin's members in a compile-time context

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

[Issue 3509] Cannot forward reference a template mixin's members in a compile-time context

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3509 --- Comment #2 from github-bugzi...@puremagic.com 2012-03-12 19:28:40 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd

[Issue 3510] Cannot forward reference a templated type from within a template mixin

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3510 --- Comment #1 from github-bugzi...@puremagic.com 2012-03-12 20:02:19 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd

[Issue 3510] Cannot forward reference a templated type from within a template mixin

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3510 --- Comment #2 from github-bugzi...@puremagic.com 2012-03-12 20:02:40 PDT --- Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

[Issue 3510] Cannot forward reference a templated type from within a template mixin

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

[Issue 4504] ICE(toir.c) nested function passed by alias to nested member function

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

[Issue 6426] ICE(toir.c) with function-nested alias

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

[Issue 7696] New: The Array container works improperly when using as a property

2012-03-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7696 Summary: The Array container works improperly when using as a property Product: D Version: D2 Platform: All OS/Version: Windows Status: NEW Severity:

<    1   2   3