[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #13 from Walter Bright bugzi...@digitalmars.com --- Vladimir, you bring up good points. I'll try to address them. First off, why do this? 1. much faster 2. string processing can be @nogc and nothrow. If you follow external discussions

[Issue 14521] New: Glossary page needs updating

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14521 Issue ID: 14521 Summary: Glossary page needs updating Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #19 from Vladimir Panteleev thecybersha...@gmail.com --- (In reply to Vladimir Panteleev from comment #16) (In reply to Walter Bright from comment #15) It still allocates memory. But it's worth thinking about. Maybe assert()? Sure.

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 Marc Schütz schue...@gmx.net changed: What|Removed |Added CC||schue...@gmx.net --- Comment

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #20 from Vladimir Panteleev thecybersha...@gmail.com --- (In reply to Marc Schütz from comment #18) Data with other (or unknown) encodings needs to be stored in `ubyte[]`. Have you tried using ubyte[] to process ASCII text? It's

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #15 from Walter Bright bugzi...@digitalmars.com --- (In reply to Vladimir Panteleev from comment #14) If I understand correctly, throwing Error instead of Exception will also solve the performance issues It still allocates memory. But

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #16 from Vladimir Panteleev thecybersha...@gmail.com --- (In reply to Walter Bright from comment #15) It still allocates memory. But it's worth thinking about. Maybe assert()? Sure. I did not mean Unicode normalization - it was a

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #17 from Vladimir Panteleev thecybersha...@gmail.com --- Let's see if I understand the situation correctly... let's say we have a chain: str.a.b.c So, str is a UTF-8 string, and a, b and c are range algorithms (they use .front/.popFront

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #6 from Jonathan M Davis issues.dl...@jmdavisprog.com --- (In reply to Vladimir Panteleev from comment #4) Here's a counter-proposal: when encountering invalid UTF-8, instead of throwing exceptions, throw errors. This will fix the

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #7 from Vladimir Panteleev thecybersha...@gmail.com --- (In reply to Jonathan M Davis from comment #6) Yikes. That is far worse than throwing Exceptions, since it would kill your program, and it's indicative of a bug in the program

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #9 from Jonathan M Davis issues.dl...@jmdavisprog.com --- Most string-based functions work perfectly well with invalid Unicode. Does find care? Does startsWith? Does filter? The replacement character simply won't match what you're looking

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #5 from Sobirari Muhomori dfj1es...@sneakemail.com --- Or provide a global override similar to assertHandler. --

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #10 from Vladimir Panteleev thecybersha...@gmail.com --- OK, I see from your post that you don't see many of the problems with the replacement character. Let me show you some example problematic situations: 1. Bob wants to update his

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 Jonathan M Davis issues.dl...@jmdavisprog.com changed: What|Removed |Added CC|

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #4 from Vladimir Panteleev thecybersha...@gmail.com --- Here's a counter-proposal: when encountering invalid UTF-8, instead of throwing exceptions, throw errors. This will fix the nothrow and performance problems, and will avoid the risk

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #3 from Vladimir Panteleev thecybersha...@gmail.com --- it's hugely annoying when you need to actually process invalid unicode Yeah, and it'll me a lot more than just annoying when you discover too late that your data's been

[Issue 14522] New: Postfix array declaration examples should be removed from arrays.html

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14522 Issue ID: 14522 Summary: Postfix array declaration examples should be removed from arrays.html Product: D Version: D2 Hardware: All OS: All Status:

[Issue 14328] The terms lvalue and rvalue should be added to the glossary

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14328 Gary Willoughby d...@nomad.so changed: What|Removed |Added Keywords||pull CC|

[Issue 14522] Postfix array declaration examples should be removed from arrays.html

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14522 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #14 from Vladimir Panteleev thecybersha...@gmail.com --- (In reply to Walter Bright from comment #13) Vladimir, you bring up good points. I'll try to address them. First off, why do this? 1. much faster If I understand correctly,

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #11 from Walter Bright bugzi...@digitalmars.com --- https://github.com/D-Programming-Language/druntime/pull/1240 --

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #12 from Walter Bright bugzi...@digitalmars.com --- (In reply to bearophile_hugs from comment #8) Another solution is to deprecate foreach iteration on strings, and require something like foreach(c; mystring.byCharThrowing) and similar

[Issue 14470] Reuse of object memory: new emplace overload

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14470 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 14277] Compile-time array casting error - ugly error report

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14277 --- Comment #4 from Ketmar Dark ket...@ketmar.no-ip.org --- this also ruing things like `typeof(smth).stringof[$-2..$] == []` for example. so it's unusable. --

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #21 from Sobirari Muhomori dfj1es...@sneakemail.com --- (In reply to Vladimir Panteleev from comment #16) Global opt-in for foreach is not feasible. I agree - some libraries will expect one thing, and others another. Libraries don't

[Issue 14497] Disassembly view

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14497 Rainer Schuetze r.sagita...@gmx.de changed: What|Removed |Added CC||r.sagita...@gmx.de ---

[Issue 14524] New: Right clicking in solution explorer to add folders does not work as expected

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14524 Issue ID: 14524 Summary: Right clicking in solution explorer to add folders does not work as expected Product: D Version: D2 Hardware: x86_64 OS: Windows

[Issue 14523] New: New Windows Application uses incorrect initialization/termination code

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14523 Issue ID: 14523 Summary: New Windows Application uses incorrect initialization/termination code Product: D Version: D2 Hardware: x86_64 OS: Windows

[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14519 --- Comment #22 from Marc Schütz schue...@gmx.net --- (In reply to Vladimir Panteleev from comment #20) (In reply to Marc Schütz from comment #18) Data with other (or unknown) encodings needs to be stored in `ubyte[]`. Have you tried using

[Issue 14215] invalid import in core.sys.linux.stdio

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14215 Joakim db...@joakim.fea.st changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 14525] New: Cannot access help information from getopt if a required parameter is not given

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14525 Issue ID: 14525 Summary: Cannot access help information from getopt if a required parameter is not given Product: D Version: D2 Hardware: All OS: All

[Issue 14497] Disassembly view

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14497 --- Comment #2 from Manu turkey...@gmail.com --- Yeah, requiring that the program link is annoying, and if the program is big (mine are), then the build times can get long, and iteration is slow. Short of source, at very least, there needs to be

[Issue 14526] New: GetOptException DDOC needs cleanup

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14526 Issue ID: 14526 Summary: GetOptException DDOC needs cleanup Product: D Version: D2 Hardware: All URL: http://dlang.org/phobos/std_getopt.html#.GetOptExcepti on

[Issue 13440] Keyed array literal is not documented

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13440 Gary Willoughby d...@nomad.so changed: What|Removed |Added CC||d...@nomad.so --- Comment #1

[Issue 12803] __traits(getFunctionAttributes) is not documented

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12803 Gary Willoughby d...@nomad.so changed: What|Removed |Added Keywords||pull CC|

[Issue 14473] Remove deprecated HTML tags from ddoc output

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14473 --- Comment #1 from Gary Willoughby d...@nomad.so --- Discussion regarding this issue: http://forum.dlang.org/thread/fmgylnkatvuuoeosc...@forum.dlang.org --

[Issue 13867] Overriding a method from an extern(C++) interface requires extern(C++) on the method definition

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13867 nick nicolas.jincher...@gmail.com changed: What|Removed |Added Severity|enhancement |normal --

[Issue 13433] Request: Clock.currTime option to use CLOCK_REALTIME_COARSE / CLOCK_REALTIME_FAST

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13433 --- Comment #14 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/8e29e0621b074a8d368b4d7d344281adb7a91e54 Add ClockType

[Issue 14520] [REG2.067.0] string/alias template overload

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14520 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Keywords||rejects-valid

[Issue 13374] Wrong template overload resolution when passing function to alias/string parameter

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13374 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added See Also|

[Issue 14520] [REG2.067.0] string/alias template overload

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14520 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added See Also|

[Issue 14527] New: [Enh] Instrument calls to operator new with -profilenew compiler switch

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14527 Issue ID: 14527 Summary: [Enh] Instrument calls to operator new with -profilenew compiler switch Product: D Version: D2 Hardware: All OS: All Status:

[Issue 14528] New: GIT HEAD: can't pass protected member to template by alias

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14528 Issue ID: 14528 Summary: GIT HEAD: can't pass protected member to template by alias Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 12803] __traits(getFunctionAttributes) is not documented

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12803 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12803] __traits(getFunctionAttributes) is not documented

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12803 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/884f46101ea0cdb611cc3c5c43a1961202818980 Fix issue 12803

[Issue 14529] New: Bug in Regex insensitive match

2015-04-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14529 Issue ID: 14529 Summary: Bug in Regex insensitive match Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1