[Issue 8651] Slice op Slice throws exceptions (not errors), and nothrow

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8651 --- Comment #1 from monarchdo...@gmail.com 2012-09-15 23:53:18 PDT --- Also, simple SlicoOp operations should be nothrow: nothrow void foo(int[] a) { a[] += 5; } Error: _arrayExpSliceAddass_i is not nothrow Error: function main.foo 'foo' is

[Issue 8589] Incorrect conversion of function returning `typeof(null)` to function returning an array

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

[Issue 8657] TypeInfo generated for const/immutable static arrays not transitive

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8657 --- Comment #1 from Kenji Hara k.hara...@gmail.com 2012-09-16 04:47:16 PDT --- (In reply to comment #0) [snip] It shows that the next and base properties of the TypeInfo generated for const(int[2]) and immutable(int[2]) lose the qualifier.

[Issue 4090] No foreach type inference with const, ref etc modifiers

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4090 --- Comment #4 from Kenji Hara k.hara...@gmail.com 2012-09-16 04:53:49 PDT --- *** Issue 8649 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 8649] Not accepted const ref Type in foreach

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8649 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 8645] ICE: Assertion failed: (0), function totym, file glue.c, line 1150.

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8645 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||ice, pull

[Issue 8667] New: selective import breaks normal overload resolution

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8667 Summary: selective import breaks normal overload resolution Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: critical Priority: P2

[Issue 8668] New: public selective import makes functions conflict when otherwise they don't

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8668 Summary: public selective import makes functions conflict when otherwise they don't Product: D Version: D2 Platform: All OS/Version: All Status: NEW

undefined reference to error. can't compile with custom modules

2012-09-16 Thread Andrey
DMD version 2.60 (Linux, 32/64 bit). Ubuntu 12.04, Linux 3.2.0-30-generic File datastructures.d: module datastructures; import std.container; import std.stdio; struct MyStruct(T) { T* element; } File tests.d: import datastructures; void main() { int i = 0; } I get this message in

Re: undefined reference to error. can't compile with custom modules

2012-09-16 Thread Adam D. Ruppe
I think this is the wrong newsgroup. Normally you'd use digitalmars.D.learn. But when compiling you should put all your custom modules on the command line. dmd tests.d datastructures.d And that will solve it. Alternatively you can compile them separately then put all the .o files together

Re: undefined reference to error. can't compile with custom modules

2012-09-16 Thread Andrey
On Sunday, 16 September 2012 at 14:13:02 UTC, Adam D. Well, sometimes it works and sometimes doesn't. For example, if I exclude std.stdio import from the module file, then it works just with dmd tests.d. Although yersterday it worked fine even with imported stdio. It this undefined behavior?

Re: undefined reference to error. can't compile with custom modules

2012-09-16 Thread Adam D. Ruppe
On Sunday, 16 September 2012 at 14:28:40 UTC, Andrey wrote: Well, sometimes it works and sometimes doesn't. For example, if I exclude std.stdio import from the module file, then it works just with dmd tests.d. Although yersterday it worked fine even with imported stdio. It this undefined

[Issue 8669] New: TemplateThisParameter should change member function's qualifier

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8669 Summary: TemplateThisParameter should change member function's qualifier Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity:

Re: undefined reference to error. can't compile with custom modules

2012-09-16 Thread Andrey
Thank you for clearance. ^_^ I hope this will find its way somewhere to official docs. I suppose, this topic is closed then if there is nothing more to add.

[Issue 8669] TemplateThisParameter should change member function's qualifier

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8669 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #1

[Issue 8617] std.typecons.Proxy.opEquals compiles error: undefined identifier 'startsWith'

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

[Issue 8657] TypeInfo generated for const/immutable static arrays not transitive

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8657 --- Comment #2 from Rainer Schuetze r.sagita...@gmx.de 2012-09-16 10:23:53 PDT --- (In reply to comment #1) (In reply to comment #0) [snip] TypeInfo_Const.next specifies the TypeInfo object of the type that removed head const qualifier

[Issue 8666] std.math.abs(int.min) returns int.min

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8666 --- Comment #2 from Caligo iteronve...@gmail.com 2012-09-16 10:53:57 PDT --- (In reply to comment #1) This is a known anomaly. I assume you are proposing that returning long is the right way to go about it, but it really isn't. One

[Issue 8670] New: IFTI fails from aliases

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8670 Summary: IFTI fails from aliases Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD

[Issue 8671] New: Segmentation fault with 1.0 - uniform(0.0, 1.0)

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8671 Summary: Segmentation fault with 1.0 - uniform(0.0, 1.0) Product: D Version: D2 Platform: x86_64 OS/Version: Mac OS X Status: NEW Severity: major Priority: P2

[Issue 7728] Alternative div and mod in core.bitop

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7728 --- Comment #1 from bearophile_h...@eml.cc 2012-09-16 13:32:15 PDT --- See also an alternative proposal, Issue 8672 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because:

[Issue 8672] New: %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 Summary: %% operator Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD

[Issue 8671] Segmentation fault with 1.0 - uniform(0.0, 1.0)

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8671 --- Comment #1 from Peter Alexander peter.alexander...@gmail.com 2012-09-16 13:39:41 PDT --- Still occurs in git HEAD as of the time of this post. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are

[Issue 8638] built-in array opSliceAssign fails with user defined opAssign

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8638 monarchdo...@gmail.com changed: What|Removed |Added Severity|normal |enhancement --- Comment #2

[Issue 8672] %% operator

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

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #2 from Walter Bright bugzi...@digitalmars.com 2012-09-16 14:46:20 PDT --- *** Issue 7728 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You

[Issue 7728] Alternative div and mod in core.bitop

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

[Issue 8665] auto function and implicit conversion in return statement corrupt returned value

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8665 --- Comment #4 from Jonathan M Davis jmdavisp...@gmx.com 2012-09-16 16:24:17 PDT --- If the decision is that we want different behavior than the spec dictates, then the spec needs to be changed, but as it stands, according to the spec, this

[Issue 8617] std.typecons.Proxy.opEquals compiles error: undefined identifier 'startsWith'

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8617 --- Comment #3 from github-bugzi...@puremagic.com 2012-09-16 16:25:17 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #4 from Walter Bright bugzi...@digitalmars.com 2012-09-16 16:35:40 PDT --- The point is, the programmer has to take extra care regardless. All definitions of modulus are a land mine, as they are all arbitrary. There is no such

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #5 from bearophile_h...@eml.cc 2012-09-16 17:06:26 PDT --- (In reply to comment #4) The point is, the programmer has to take extra care regardless. I am not the only one making mistakes with the C-style modulus, I know of other

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC|

Re: [Issue 8672] %% operator

2012-09-16 Thread ixid
Is there any use for the way C-style modulus interacts with negative numbers? It seems little more than broken on the basis of making positive number modulus operations efficient back when C was created.

Re: [Issue 8672] %% operator

2012-09-16 Thread bearophile
On Monday, 17 September 2012 at 01:15:56 UTC, ixid wrote: Is there any use for the way C-style modulus interacts with negative numbers? It seems little more than broken on the basis of making positive number modulus operations efficient back when C was created. This is not a group for

[Issue 8673] New: enum z = [0][(()=$-1)()]; crashes the compiler

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8673 Summary: enum z = [0][(()=$-1)()]; crashes the compiler Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: CTFE Severity: normal

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #7 from bearophile_h...@eml.cc 2012-09-16 19:16:51 PDT --- (In reply to comment #6) since there is no standard definition for it, Most computer languages have one of two definitions. C99 and D use one, I am talking about the

[Issue 7896] Sequence slicing

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7896 --- Comment #6 from github-bugzi...@puremagic.com 2012-09-16 19:17:33 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8284] [std.container] can't define Array!T, if T is Tuple!(size_t, size_t)

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8284 --- Comment #2 from github-bugzi...@puremagic.com 2012-09-16 19:22:37 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8332] std.Container.Range.opIndexOpAssign does not compile

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8332 --- Comment #2 from github-bugzi...@puremagic.com 2012-09-16 19:38:53 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8674] New: template class name unconsistent behavior

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8674 Summary: template class name unconsistent behavior Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2

[Issue 7648] std.stdio expects file names to be encoded in CP_ACP on Windows instead of UTF-8

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7648 --- Comment #8 from github-bugzi...@puremagic.com 2012-09-16 20:45:24 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8643] [snn] _wfopen and other non-standard wide-character functions fail with non-ASCII symbols

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8643 --- Comment #2 from github-bugzi...@puremagic.com 2012-09-16 20:45:19 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/phobos

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #8 from Jonathan M Davis jmdavisp...@gmx.com 2012-09-16 20:50:36 PDT --- Even Fortran is now and then adding important features today. Generally only dead languages stop changing. Please keep this in mind. If something is truly

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #9 from Walter Bright bugzi...@digitalmars.com 2012-09-16 20:53:43 PDT --- (In reply to comment #7) (In reply to comment #6) since there is no standard definition for it, C99 and D use one, C99 leaves it as implementation