Re: About Go, D module naming

2012-12-21 Thread Jonathan M Davis
On Friday, December 21, 2012 22:12:31 David Nadlinger wrote: On Friday, 21 December 2012 at 20:33:47 UTC, Jonathan M Davis wrote: If we didn't have -w, then we could use warnings for stuff which was probably but not definitively wrong and which was okay to force people to change […]

Re: dlang.org Library Reference

2012-12-21 Thread Rob T
On Saturday, 22 December 2012 at 03:34:55 UTC, Andrei Alexandrescu wrote: On 12/21/12 10:27 PM, Rob T wrote: Behold: http://us3.php.net/manual/en/function.exp.php I understand what you mean now, just didn't at first. What I see looks very good in the php page. I think there's a lot to be

Re: About Go, D module naming

2012-12-21 Thread Rob T
On Saturday, 22 December 2012 at 04:21:06 UTC, Jonathan M Davis wrote: I tend to agree that warnings were a bad idea and that they should never have been introduced, if nothing else, because I don't think that it's ever good practice to leave warnings in your code, making them almost the same

Re: About Go, D module naming

2012-12-21 Thread Walter Bright
On 12/21/2012 6:55 PM, Timon Gehr wrote: How it works within classes and structs only affects the exact contents of error messages anyway, right? (not accessible vs. not defined) I'd consider that a compiler implementation detail. No, it affects the list of candidates for function overloading.

Re: About Go, D module naming

2012-12-21 Thread bearophile
Jonathan M Davis: And in the case of unused variables, it would completely break Phobos, because so many traits legitimately use unused variables. Given how important is to spot unused variables in user code, then maybe some solution can be invented for library code that has legitimate

Re: About Go, D module naming

2012-12-21 Thread Jonathan M Davis
On Saturday, December 22, 2012 07:54:06 bearophile wrote: Jonathan M Davis: And in the case of unused variables, it would completely break Phobos, because so many traits legitimately use unused variables. Given how important is to spot unused variables in user code, then maybe some

Re: About Go, D module naming

2012-12-21 Thread Jonathan M Davis
On Friday, December 21, 2012 22:42:54 Walter Bright wrote: On 12/21/2012 6:55 PM, Timon Gehr wrote: How it works within classes and structs only affects the exact contents of error messages anyway, right? (not accessible vs. not defined) I'd consider that a compiler implementation detail.

Re: static code generation

2012-12-21 Thread r_m_r
On 12/21/2012 10:30 AM, r_m_r wrote: http://wiki.dlang.org/Combining_Structs) the link should be: http://wiki.dlang.org/Combining_structs regards, r_m_r

Re: MS ODBC encoding issue

2012-12-21 Thread Regan Heath
On Wed, 19 Dec 2012 06:33:16 -, Sam Hu samhudotsa...@gmail.com wrote: On Monday, 10 December 2012 at 14:43:08 UTC, Regan Heath wrote: Ahh, of course. Now I'm having linking issues :p I'm using VisualD and I've added odbc32.lib to the right place, but some symbols are still missing -

Help me write saveAll

2012-12-21 Thread monarch_dodra
There are a lot of algorithms in std.algorithm that operate on foo(Range, Needles...)(Range range, Needles needles). Needles can be anything, in particular, either an element or a range. The thing is that every now and then, you want to save the entirety of (the ranges) inside needles. EG,

Re: Help me write saveAll

2012-12-21 Thread H. S. Teoh
On Fri, Dec 21, 2012 at 06:01:13PM +0100, monarch_dodra wrote: There are a lot of algorithms in std.algorithm that operate on foo(Range, Needles...)(Range range, Needles needles). Needles can be anything, in particular, either an element or a range. The thing is that every now and then,

Re: Help me write saveAll

2012-12-21 Thread monarch_dodra
On Friday, 21 December 2012 at 17:27:32 UTC, H. S. Teoh wrote: On Fri, Dec 21, 2012 at 06:01:13PM +0100, monarch_dodra wrote: There are a lot of algorithms in std.algorithm that operate on foo(Range, Needles...)(Range range, Needles needles). Needles can be anything, in particular, either an

Re: Help me write saveAll

2012-12-21 Thread Joshua Niehus
On Friday, 21 December 2012 at 17:01:14 UTC, monarch_dodra wrote: There are a lot of algorithms in std.algorithm that operate on foo(Range, Needles...)(Range range, Needles needles). Needles can be anything, in particular, either an element or a range. The thing is that every now and then,

Re: Help me write saveAll

2012-12-21 Thread monarch_dodra
On Friday, 21 December 2012 at 20:38:34 UTC, Joshua Niehus wrote: On Friday, 21 December 2012 at 17:01:14 UTC, monarch_dodra wrote: There are a lot of algorithms in std.algorithm that operate on foo(Range, Needles...)(Range range, Needles needles). Needles can be anything, in particular,

[Issue 9186] Manifest constant can violate const correctness restrictions when empty

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9186 --- Comment #3 from Kenji Hara k.hara...@gmail.com 2012-12-21 00:30:27 PST --- This is not a type system problem. All manifest constants, which declared by `enum` and T.init, make literal expressions in the places where they used. alias T =

[Issue 9186] Manifest constant can violate const correctness restrictions when empty

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9186 Max Samukha samu...@voliacable.com changed: What|Removed |Added CC|

[Issue 9186] Manifest constant can violate const correctness restrictions when empty

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9186 --- Comment #5 from monarchdo...@gmail.com 2012-12-21 01:52:11 PST --- (In reply to comment #3) This is not a type system problem. All manifest constants, which declared by `enum` and T.init, make literal expressions in the places where

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-12-21 06:37:34 PST --- @bear: Please see the comments here: https://github.com/D-Programming-Language/phobos/pull/1017 The feature can be implemented but to!() was rejected,

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 monarchdo...@gmail.com changed: What|Removed |Added CC||monarchdo...@gmail.com ---

[Issue 9192] New: Allow opEquals for .tupleof expressions

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9192 Summary: Allow opEquals for .tupleof expressions Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #4 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-12-21 07:08:12 PST --- (In reply to comment #3) Well, that's why we have std.ascii, no? For all char operations when we don't care about unicode. In all fairness, unicode

[Issue 5543] to!int to see a char as a single-char string

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

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #6 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-12-21 07:26:08 PST --- Ok I think there are two enhancements here, one for the simple ascii int-char, char-int, and the other more complicated Unicode implementation which

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx ---

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #8 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-12-21 07:32:31 PST --- (In reply to comment #7) It would be nice to have a separate issue filed for tracking Unicode support progress. It can maybe include things like issue

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #9 from monarchdo...@gmail.com 2012-12-21 07:34:14 PST --- Ok I think there are two enhancements here, one for the simple ascii int-char, char-int, and the other more complicated Unicode implementation which monarch/dmitry know

[Issue 9012] writef/format inconsistent with format specifier

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9012 --- Comment #4 from hst...@quickfur.ath.cx 2012-12-21 07:38:30 PST --- The pull has been merged; I just tested the code and it's working now. Should this bug be closed? -- Configure issuemail:

[Issue 4463] double.init in associative array seems 0.0

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4463 --- Comment #1 from hst...@quickfur.ath.cx 2012-12-21 07:45:21 PST --- Seems to be related to bug 3825. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #10 from monarchdo...@gmail.com 2012-12-21 07:53:36 PST --- (In reply to comment #5) I'm wrapping up a revamp of std.uni that makes it piece of cake to create character sets. And maps are converted to multi-staged tables that

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #11 from Dmitry Olshansky dmitry.o...@gmail.com 2012-12-21 08:00:56 PST --- (In reply to comment #10) (In reply to comment #5) I'm wrapping up a revamp of std.uni that makes it piece of cake to create character sets. And

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #12 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-12-21 08:04:19 PST --- (In reply to comment #9) int numericValue(dchar c) @safe pure nothrow What about int-dchar? We could call it toNumericChar or something, but it

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #13 from monarchdo...@gmail.com 2012-12-21 08:08:20 PST --- (In reply to comment #12) (In reply to comment #9) int numericValue(dchar c) @safe pure nothrow What about int-dchar? We could call it toNumericChar or something,

[Issue 4183] @property doesnt work with delegate return type

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4183 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #14 from monarchdo...@gmail.com 2012-12-21 08:11:21 PST --- (In reply to comment #11) Aye, and given there are things like 1e12 I don't think packing it would work any better... some kind of custom type is required. Really?

[Issue 3714] Identity assignment operator overload LEGAL for const, shared, etc.

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3714 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3715] std.string.format can't use const/immutable toString functions

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3715 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 3810] overloading on const does not work for template methods

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3810 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #15 from bearophile_h...@eml.cc 2012-12-21 09:54:26 PST --- Having functions in std.ascii (and elsewhere) seems acceptable. But I think the name of such functions shouldn't be too much long. to!int raises exceptions. Returning -1

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #16 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-12-21 10:10:37 PST --- (In reply to comment #15) Having functions in std.ascii (and elsewhere) seems acceptable. But I think the name of such functions shouldn't be too

[Issue 3561] math.abs signature accepts static arrays, but errors internally.

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3561 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Keywords|diagnostic |

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #17 from Dmitry Olshansky dmitry.o...@gmail.com 2012-12-21 10:20:15 PST --- (In reply to comment #14) (In reply to comment #11) Aye, and given there are things like 1e12 I don't think packing it would work any better...

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #18 from bearophile_h...@eml.cc 2012-12-21 10:24:12 PST --- (In reply to comment #16) Whereas if it threw to begin with you're forced to catch exceptions. There is no perfect solution. Exceptions are safer than error codes

[Issue 3258] Calling private or package override methods calls the base implementation

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3258 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added CC|

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #19 from monarchdo...@gmail.com 2012-12-21 10:53:11 PST --- (In reply to comment #17) (In reply to comment #14) (In reply to comment #11) Aye, and given there are things like 1e12 I don't think packing it would work

[Issue 5543] to!int to see a char as a single-char string

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5543 --- Comment #20 from monarchdo...@gmail.com 2012-12-21 10:55:24 PST --- (In reply to comment #18) (In reply to comment #16) Whereas if it threw to begin with you're forced to catch exceptions. There is no perfect solution. Exceptions

[Issue 3258] Calling private or package override methods calls the base implementation

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3258 --- Comment #7 from Diggory diggory.ha...@gmail.com 2012-12-21 11:19:38 PST --- Andrej, that seems like a funny change to me. Unless D2 either allows virtual package functions or states that these are not allowed it seems that it's still

[Issue 3258] Calling private or package override methods calls the base implementation

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

[Issue 3258] Calling private or package override methods calls the base implementation

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3258 --- Comment #9 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-12-21 15:09:12 PST --- (In reply to comment #7) Yeah I know, the spec tells one thing on one page, then another thing on another. It says Package extends private on the

[Issue 3438] struct ctor with defaulted parameters should be rejected

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3438 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Keywords|wrong-code

[Issue 3258] Calling private or package override methods calls the base implementation

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3258 --- Comment #10 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-12-21 17:04:28 PST --- (In reply to comment #9) Non-virtual by default + a virtual keyword + no limits on virtuality based on access specifiers = dream come true (for me).

[Issue 3258] Calling private or package override methods calls the base implementation

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3258 --- Comment #11 from Stewart Gordon s...@iname.com 2012-12-21 17:14:10 PST --- (In reply to comment #10) I forgot one thing that completes the circle, and that is friend declarations. There are no friend declarations in D. So what exactly

[Issue 4006] dirEntries won't span subdirectories

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4006 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Issue 8967] dirEntries throws when encountering a long path on windows

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8967 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

[Issue 8298] dirEntries special linux file in Home dir

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8298 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

[Issue 8291] dirEntry cannot handle root directories + unhandled exception causes crash

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8291 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

[Issue 8250] dirEntries fails to generate file list when compiled with -inline

2012-12-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8250 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

<    1   2