Visual D 0.3.24 released

2011-05-08 Thread Rainer Schuetze
Hi, as the newest version of Visual D includes some major improvements, I'd like to announce its release here. Visual D is a Visual Studio package providing both project management and language services for the D programming language. It works with Visual Studio 2005, 2008 and 2010 as well

Re: Visual D 0.3.24 released

2011-05-08 Thread Piotr Szturmaj
Rainer Schuetze wrote: as the newest version of Visual D includes some major improvements, I'd like to announce its release here. Cool! I'm using VisualD since version 0.3.22. Thank you for your great work!

Re: Visual D 0.3.24 released

2011-05-08 Thread Eric Poggel (JoeCoder)
On 5/8/2011 5:31 AM, Rainer Schuetze wrote: Hi, as the newest version of Visual D includes some major improvements, I'd like to announce its release here. Visual D is a Visual Studio package providing both project management and language services for the D programming language. It works with

Re: Implementing std.log

2011-05-08 Thread Andrew Wiley
On Sat, May 7, 2011 at 11:03 PM, dsimcha dsim...@yahoo.com wrote: Ok, there's clearly been some misunderstanding here. My real point was, why do you need this threading at all? It's definitely overkill for a single threaded application, but for things like the application I'm working on,

Re: Implementing std.log

2011-05-08 Thread Jonathan M Davis
On Sat, May 7, 2011 at 11:03 PM, dsimcha dsim...@yahoo.com wrote: Ok, there's clearly been some misunderstanding here. My real point was, why do you need this threading at all? It's definitely overkill for a single threaded application, but for things like the application I'm working on,

Google Code Jam 2011 Language Usage

2011-05-08 Thread Peter Alexander
The Google Code Jam is a programming competition where you have to solve algorithmic problems using whatever programming language you like. The stats of what programming languages were used in the first round were collected: http://www.go-hero.net/jam/11/languages Some select figures for

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread bearophile
Peter Alexander: Some select figures for languages used to solve the first question: C++ 5032 Java 2321 C#628 C 532 Haskell 100 Clojure 13 GO13 D 5 Scheme5 The third most used language is Python. (In previous 3 years, D had between 2-4

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread Peter Alexander
On 8/05/11 12:39 PM, bearophile wrote: But a person from Japan has used D to be among the top ten, this is good: http://www.go-hero.net/jam/11/name/hos.lyric Unfortunately the ranks in the first don't mean much at all. Most rounds last only a few hours, so everyone competes at the same time,

TDPL error(s)

2011-05-08 Thread Timon Gehr
On page 263, TDPL states that struct objects nested inside a function cannot be returned, because the caller does not have access to their types. Using the auto keyword, DMD lets you do this though. Is this a bug in DMD or an error in TDPL? On the same page, the assert should be

Re: TDPL error(s)

2011-05-08 Thread Denis Koroskin
On Sun, 08 May 2011 17:59:02 +0400, Timon Gehr timon.g...@gmx.ch wrote: On page 263, TDPL states that struct objects nested inside a function cannot be returned, because the caller does not have access to their types. Using the auto keyword, DMD lets you do this though. Is this a bug in DMD

Re: TDPL error(s)

2011-05-08 Thread Timon Gehr
On Sun, 08 May 2011 17:59:02 +0400, Timon Gehr timon.g...@gmx.ch wrote: On page 263, TDPL states that struct objects nested inside a function cannot be returned, because the caller does not have access to their types. Using the auto keyword, DMD lets you do this though. Is this a bug in DMD

Re: TDPL error(s)

2011-05-08 Thread dolive
Denis Koroskin Wrote: On Sun, 08 May 2011 17:59:02 +0400, Timon Gehr timon.g...@gmx.ch wrote: On page 263, TDPL states that struct objects nested inside a function cannot be returned, because the caller does not have access to their types. Using the auto keyword, DMD lets you do

Re: Implementing std.log

2011-05-08 Thread Jose Armando Garcia
I am not sure I follow. Writing to disk is slower than writing to memory so you want to hide some of the cost of logging by either buffering the write/log requests or messaging the requests to another thread to do the logging for you. Does that answer your question? On Sun, May 8, 2011 at 1:03

Re: Implementing std.log

2011-05-08 Thread Jose Armando Garcia
Yes. The current implementation doesn't support this because share memory logging is not implement but in the future you should be able to: initializeLogging(ActorLogger.getCreator(args[0])); // or... initializeLogging(SharedLogger.getCreator(args[0])); Where ActorLogger implements logging with

Re: Implementing std.log

2011-05-08 Thread Jose Armando Garcia
Good point and I agree that most users don't care and just want it to work... I'll change the API to reflect this. On Sun, May 8, 2011 at 6:09 AM, Jonathan M Davis jmdavisp...@gmx.com wrote: On Sat, May 7, 2011 at 11:03 PM, dsimcha dsim...@yahoo.com wrote: Ok, there's clearly been some

Re: TDPL error(s)

2011-05-08 Thread Andrei Alexandrescu
On 5/8/11 8:59 AM, Timon Gehr wrote: On page 263, TDPL states that struct objects nested inside a function cannot be returned, because the caller does not have access to their types. Using the auto keyword, DMD lets you do this though. Is this a bug in DMD or an error in TDPL? Bug in TDPL.

Re: Implementing std.log

2011-05-08 Thread dsimcha
On 5/8/2011 11:45 AM, Jose Armando Garcia wrote: I am not sure I follow. Writing to disk is slower than writing to memory so you want to hide some of the cost of logging by either buffering the write/log requests or messaging the requests to another thread to do the logging for you. Does that

Re: 64 Support on Mac, FreeBSD

2011-05-08 Thread Jacob Carlborg
On 2011-05-07 07:24, Brad Roberts wrote: On 5/6/2011 9:58 PM, dsimcha wrote: Purely out of curiosity (as in I personally have no pressing need for it), what are the main roadblocks to DMD supporting 64-bit on Mac OS and FreeBSD? I understand that on Windows we'd need a new linker, etc, but

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread Keywan Ghadami
just an idea:new name for d - d2lang

TDPL Meta-Errata (Was: TDPL error(s))

2011-05-08 Thread Nick Sabalausky
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:iq6h8h$1ph2$1...@digitalmars.com... Thanks, added to the errata: http://erdani.com/tdpl/errata Speaking of errata related to TDPL, I'm getting this in FF and IE: http://www.semitwist.com/download/tdplerrata.png And the

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread Andrew Wiley
On Sun, May 8, 2011 at 6:10 AM, Peter Alexander peter.alexander.au@ gmail.com wrote: The Google Code Jam is a programming competition where you have to solve algorithmic problems using whatever programming language you like. The stats of what programming languages were used in the first round

Re: TDPL Meta-Errata (Was: TDPL error(s))

2011-05-08 Thread Andrei Alexandrescu
On 5/8/11 2:10 PM, Nick Sabalausky wrote: Andrei Alexandrescuseewebsiteforem...@erdani.org wrote in message news:iq6h8h$1ph2$1...@digitalmars.com... Thanks, added to the errata: http://erdani.com/tdpl/errata Speaking of errata related to TDPL, I'm getting this in FF and IE:

Re: TDPL Meta-Errata (Was: TDPL error(s))

2011-05-08 Thread Nick Sabalausky
Andrei Alexandrescu seewebsiteforem...@erdani.org wrote in message news:iq6qth$286t$1...@digitalmars.com... On 5/8/11 2:10 PM, Nick Sabalausky wrote: Andrei Alexandrescuseewebsiteforem...@erdani.org wrote in message news:iq6h8h$1ph2$1...@digitalmars.com... Thanks, added to the errata:

Re: Why ddmd don't continue? (Was: TDPL error(s))

2011-05-08 Thread Nick Sabalausky
dolive doliv...@sina.com wrote in message news:iq6cad$1far$1...@digitalmars.com... Why ddmd don't continue ? Give up ? I asked korDen about this a little while ago (the main guy behind ddmd). He hasn't abandoned it. He said the lack of updates have been a combination of two things: - Just

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread Timon Gehr
Andrew Wiley wrote: I was one of the D users, although I wasn't really worried about competing. I just wanted to see how D would compare after doing so many programming contests in Java. The main thing that frustrated me was that getting input in D wasn't anywhere near as straightforward as

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread Timon Gehr
Whoops, there was a mistake: Reading array of integers: int[10] array; //somewhere in static storage, faster ... scanf(%d,n); foreach(ref x;array[0..n]) scanf(%d,x); // note the slice Timon

Collateral exceptions seem to be broken

2011-05-08 Thread Andrej Mitrovic
import std.stdio; import std.conv; import std.exception; void main() { try { foo(); } catch (Exception e) { for (Throwable t = e; t !is null; t = t.next) { writeln(t); } } } void foo() { try { throw new

Re: Collateral exceptions seem to be broken

2011-05-08 Thread KennyTM~
On May 9, 11 04:31, Andrej Mitrovic wrote: import std.stdio; import std.conv; import std.exception; void main() { try { foo(); } catch (Exception e) { for (Throwable t = e; t !is null; t = t.next) { writeln(t); } } }

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread Andrei Alexandrescu
On 5/8/11 3:04 PM, Timon Gehr wrote: However I agree that Phobos has to provide some better input handling, since using possibly unsafe C functions is the best way to do it by now. (I think readf is severely crippled) I may try to implement a meaningful read function. Looking forward to

Re: Collateral exceptions seem to be broken

2011-05-08 Thread Andrej Mitrovic
Yeah it seems to be fixed in 2.053 beta. But why is the stack trace printed out? Is that the new norm when printing caught exceptions with write()? Regardless of that, I don't get any symbols printed out when building with dmd -g -debug: C:\dmd2\windows\bindmd -debug -g test.d

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread Andrej Mitrovic
I'm very happy with using Jesse's interact library for user input: https://github.com/he-the-great/JPDLibs/tree/cmdln Last time I've used it I combined it with std.conv since I needed either a number or a q from the user, e.g.: int input; auto line = userInput!string(Enter value:); if (line ==

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread Andrej Mitrovic
*that checks if a delegate throws and returns true if so*

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread Andrew Wiley
On Sun, May 8, 2011 at 3:04 PM, Timon Gehr timon.g...@gmx.ch wrote: Andrew Wiley wrote: I was one of the D users, although I wasn't really worried about competing. I just wanted to see how D would compare after doing so many programming contests in Java. The main thing that frustrated

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread bearophile
Andrew Wiley: The main thing that frustrated me was that getting input in D wasn't anywhere near as straightforward as it is in Java. For the first problem, I have tried to implement a D solution to the first problem, because its input is a bit more complex. I have used C++ code written the

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread Jonathan M Davis
Andrew Wiley wrote: I was one of the D users, although I wasn't really worried about competing. I just wanted to see how D would compare after doing so many programming contests in Java. The main thing that frustrated me was that getting input in D wasn't anywhere near as

Re: Collateral exceptions seem to be broken

2011-05-08 Thread Jonathan M Davis
Yeah it seems to be fixed in 2.053 beta. But why is the stack trace printed out? Is that the new norm when printing caught exceptions with write()? Regardless of that, I don't get any symbols printed out when building with dmd -g -debug: C:\dmd2\windows\bindmd -debug -g test.d

Re: Implementing std.log

2011-05-08 Thread Jonathan M Davis
On 5/8/2011 11:45 AM, Jose Armando Garcia wrote: I am not sure I follow. Writing to disk is slower than writing to memory so you want to hide some of the cost of logging by either buffering the write/log requests or messaging the requests to another thread to do the logging for you. Does

Re: Collateral exceptions seem to be broken

2011-05-08 Thread Andrej Mitrovic
No, I'm on Windows. And I can't get any symbols unless I run cv2pdb (http://www.dsource.org/projects/cv2pdb) on the executable. Here's my console log: D:\dev\code\d_codetype test.d import std.exception; void main() { foo(); } void foo() { throw new Exception(foo); }

Re: Collateral exceptions seem to be broken

2011-05-08 Thread Jonathan M Davis
No, I'm on Windows. And I can't get any symbols unless I run cv2pdb (http://www.dsource.org/projects/cv2pdb) on the executable. There was a discussion on that recently. From what I understand, your build has to have debug symbols for you to get any function names (otherwise, it won't have any

Re: Implementing std.log

2011-05-08 Thread Michel Fortin
On 2011-05-08 18:24:12 -0400, Jonathan M Davis jmdavisp...@gmx.com said: On 5/8/2011 11:45 AM, Jose Armando Garcia wrote: I am not sure I follow. Writing to disk is slower than writing to memory so you want to hide some of the cost of logging by either buffering the write/log requests or

Re: Google Code Jam 2011 Language Usage

2011-05-08 Thread Timon Gehr
Andrei Alexandrescu wrote: On 5/8/11 3:04 PM, Timon Gehr wrote: However I agree that Phobos has to provide some better input handling, since using possibly unsafe C functions is the best way to do it by now. (I think readf is severely crippled) I may try to implement a meaningful read

Re: Collateral exceptions seem to be broken

2011-05-08 Thread Andrej Mitrovic
You mean my build of DMD/Phobos? Well the debug symbols are definitely shown after I run cv2pdb on the executable (it makes a .pdb file with all the symbols which get loaded at runtime by the exe). Perhaps displaying names is just unimplemented yet in 2.053 for Windows. Using cv2pdb is not a

Re: Implementing std.log

2011-05-08 Thread Jonathan M Davis
On 2011-05-08 15:45, Michel Fortin wrote: On 2011-05-08 18:24:12 -0400, Jonathan M Davis jmdavisp...@gmx.com said: On 5/8/2011 11:45 AM, Jose Armando Garcia wrote: I am not sure I follow. Writing to disk is slower than writing to memory so you want to hide some of the cost of logging by

Re: Collateral exceptions seem to be broken

2011-05-08 Thread Jonathan M Davis
On 2011-05-08 15:57, Andrej Mitrovic wrote: You mean my build of DMD/Phobos? Well the debug symbols are definitely shown after I run cv2pdb on the executable (it makes a .pdb file with all the symbols which get loaded at runtime by the exe). Perhaps displaying names is just unimplemented

C1X going forward

2011-05-08 Thread bearophile
D is somewhat backwards compatible with C, you are also able to use the C std library too. But what C? C89, C99 or C1X? GCC 4.6 introduces some features of C1X. Some info about the upcoming standard: http://en.wikipedia.org/wiki/C1X In C1X there is _Noreturn, it seems interesting:

Re: Getting equivalent elements in a range/array

2011-05-08 Thread Ali Çehreli
On 05/07/2011 09:07 PM, Andrej M. wrote: I want to turn this: auto arr = [1, 1, 2, 3, 4, 4]; into this: auto arr2 = [[1, 1], [2], [3], [4, 4]]; I want an array of arrays of the same elements. Lazy or not, I don't care. I thought I could get away with this inside some while loop: auto equals =

private module stuff

2011-05-08 Thread Sean Cavanaugh
So I was learning how to make a module of mine very strict with private parts, and was surprised I could only do this with global variables and functions. Enums, structs, and classes are fully visible outside the module regardless of being wrapped in a private{} or prefixed with private.

Re: Shouldn't duplicate functions be caught by DMD?

2011-05-08 Thread bearophile
Andrej Mitrovic: I think the compiler should check catch these mistakes at compile-time. I suggest to add an enhancement request in Bugzilla. Bugzilla entries are a form of voting by themselves too. Bye, bearophile

Re: private module stuff

2011-05-08 Thread bearophile
Sean Cavanaugh: So I was learning how to make a module of mine very strict with private parts, and was surprised I could only do this with global variables and functions. Enums, structs, and classes are fully visible outside the module regardless of being wrapped in a private{} or

Re: Getting equivalent elements in a range/array

2011-05-08 Thread bearophile
Andrej M.: I want to turn this: auto arr = [1, 1, 2, 3, 4, 4]; into this: auto arr2 = [[1, 1], [2], [3], [4, 4]]; I want an array of arrays of the same elements. Lazy or not, I don't care. Currently if you use group like this: writeln(arr.group()); You get: [Tuple!(int,uint)(1, 2),

Re: private module stuff

2011-05-08 Thread Jonathan M Davis
Sean Cavanaugh: So I was learning how to make a module of mine very strict with private parts, and was surprised I could only do this with global variables and functions. Enums, structs, and classes are fully visible outside the module regardless of being wrapped in a private{}

Re: private module stuff

2011-05-08 Thread bearophile
Jonathan M Davis: They're private _access_ but still visible. In my opinion this is not good, it looks like a messy special case. I believe that it's necessary for stuff like where various functions in std.algorithm return auto and return a private struct which you cannot construct

Re: private module stuff

2011-05-08 Thread Jonathan M Davis
Jonathan M Davis: They're private _access_ but still visible. In my opinion this is not good, it looks like a messy special case. I believe that it's necessary for stuff like where various functions in std.algorithm return auto and return a private struct which you cannot construct

Re: Linux: How to statically link against system libs?

2011-05-08 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:iq2g72$ngp$1...@digitalmars.com... Aggg!!! God damnnit, I officially fucking hate linux now... (not that I'm a win, mac or bsd fan, but whatever...) I temporarily gave up trying to actually get ahold of an old distro, so I tried the other

Re: Linux: How to statically link against system libs?

2011-05-08 Thread Nick Sabalausky
Nick Sabalausky a@a.a wrote in message news:iq60qt$pm0$1...@digitalmars.com... I downloaded 4.2 (picked pretty much at random), installed it in VirtualBox, compiled a trivial test C program in the included GCC, uploaded that to the server, and it worked! :) Actually, I did have to remove

Re: private module stuff

2011-05-08 Thread Sean Cavanaugh
On 5/8/2011 4:05 AM, Jonathan M Davis wrote: Sean Cavanaugh: So I was learning how to make a module of mine very strict with private parts, and was surprised I could only do this with global variables and functions. Enums, structs, and classes are fully visible outside the module

Re: Linux: How to statically link against system libs?

2011-05-08 Thread Spacen Jasset
On 08/05/2011 12:59, Nick Sabalausky wrote: Nick Sabalauskya@a.a wrote in message news:iq2g72$ngp$1...@digitalmars.com... Aggg!!! God damnnit, I officially fucking hate linux now... (not that I'm a win, mac or bsd fan, but whatever...) I temporarily gave up trying to actually get ahold

Re: private module stuff

2011-05-08 Thread bearophile
Sean Cavanaugh: With the language the way it is now, it is nonsensical to have the attributes public/protected/package/private/export precede the keyword struct, class, or enum. It's an implementation bug or a design bug. If it's not already in Bugzilla then it deserves to be there. Bye,

Re: Shouldn't duplicate functions be caught by DMD?

2011-05-08 Thread Stewart Gordon
On 08/05/2011 09:41, bearophile wrote: Andrej Mitrovic: I think the compiler should check catch these mistakes at compile-time. I suggest to add an enhancement request in Bugzilla. Bugzilla entries are a form of voting by themselves too. snip One should not file stuff in Bugzilla without

Re: int or size_t ?

2011-05-08 Thread Stewart Gordon
On 07/05/2011 18:09, %u wrote: In Patterns of Human Error, the slide 31 point that you should replce int with size_t why that consider an error ? For those who aren't sure what this is on about: http://www.slideshare.net/dcacm/patterns-of-human-error But the short answer is because dim is a

Re: Problem Passing Struct to C

2011-05-08 Thread Jacob Carlborg
On 2011-05-06 21:05, Robert Clipsham wrote: On 06/05/2011 19:40, Jacob Carlborg wrote: No, D implicitly casts string literals to zero-terminated const(char)*. That part is fine. -Steve Since when? Since const was introduced, before then they implicitly casted to char* instead. And that has

Re: Linux: How to statically link against system libs?

2011-05-08 Thread Jacob Carlborg
On 2011-04-29 22:02, Nick Sabalausky wrote: I'm having a rediculously hard time trying to find a CentOS 3 installation disc image (or any other version before 5.6). This is the closest I've been able to find: Have a look at this: http://vault.centos.org/ -- /Jacob Carlborg

Re: Getting equivalent elements in a range/array

2011-05-08 Thread Andrej Mitrovic
Thanks, group seems to work fine too.

Re: Cannot interpret struct at compile time

2011-05-08 Thread Lutger Blijdestijn
Robert Clipsham wrote: Hey all, I was wondering if anyone could enlighten me as to why the following code does not compile (dmd2, latest release or the beta): struct Foo { int a; } string test() { string str = struct ~ Foo.stringof ~ _{; foreach (j, f;

Re: Linux: How to statically link against system libs?

2011-05-08 Thread Adam D. Ruppe
Nick Sabalausky wrote: Actually, I did have to remove the HTTP status code output from my little hello world cgi test in forder for Apache to not throw up a 500. HTTP status is normally done with a Status: header in cgi. (Actually writing the line works too but only with certain settings.)

Re: Linux: How to statically link against system libs?

2011-05-08 Thread Nick Sabalausky
Adam D. Ruppe destructiona...@gmail.com wrote in message news:iq6osh$25di$1...@digitalmars.com... Nick Sabalausky wrote: Actually, I did have to remove the HTTP status code output from my little hello world cgi test in forder for Apache to not throw up a 500. HTTP status is normally done

Re: Linux: How to statically link against system libs?

2011-05-08 Thread Nick Sabalausky
Jacob Carlborg d...@me.com wrote in message news:iq6llk$20ch$1...@digitalmars.com... On 2011-05-08 19:50, Jacob Carlborg wrote: On 2011-04-29 22:02, Nick Sabalausky wrote: I'm having a rediculously hard time trying to find a CentOS 3 installation disc image (or any other version before 5.6).

Re: Linux: How to statically link against system libs?

2011-05-08 Thread Nick Sabalausky
Spacen Jasset spacenjas...@yahoo.co.uk wrote in message news:iq69q1$1ack$1...@digitalmars.com... It should work,but again is depends what your target platform is. It's quite important that - Even on windows. At the company I am now contracting for we compile the software agents using visual

Re: private module stuff

2011-05-08 Thread Jonathan M Davis
On 5/8/2011 4:05 AM, Jonathan M Davis wrote: Sean Cavanaugh: So I was learning how to make a module of mine very strict with private parts, and was surprised I could only do this with global variables and functions. Enums, structs, and classes are fully visible outside the

Re: Linux: How to statically link against system libs?

2011-05-08 Thread Spacen Jasset
On 08/05/2011 20:42, Nick Sabalausky wrote: Spacen Jassetspacenjas...@yahoo.co.uk wrote in message news:iq69q1$1ack$1...@digitalmars.com... It should work,but again is depends what your target platform is. It's quite important that - Even on windows. At the company I am now contracting for we

Re: Cannot interpret struct at compile time

2011-05-08 Thread Robert Clipsham
On 08/05/2011 19:19, Lutger Blijdestijn wrote: test also doesn't compile normally on my box, dmd errors on Foo.tupleof. Not sure if this is illegal or not. I think you want the allMembers trait or something similar. Something like this: import std.traits; string test(T)() { string str =

how to migrate to std.datetime

2011-05-08 Thread Adam D. Ruppe
I decided to update my compiler today, and regret it for a lot of reasons, but meh. One of the things is std.datetime. A lot of my code uses std.date. It works very, very well for me and I like it. But, the compile process is nagging me about it. I want it to shut up. However, I'm not even

Is there a better way to write this split functionality?

2011-05-08 Thread Andrej Mitrovic
import std.stdio; import std.array; import std.range; import std.algorithm; void main() { auto arr = [64, 64, 64, 32, 31, 16, 32, 33, 64]; auto newarr = arr[]; bool state = true; while (arr.length) { newarr = state ? array(until!(a 32)(arr))

Re: how to migrate to std.datetime

2011-05-08 Thread Jonathan M Davis
On 2011-05-08 17:46, Adam D. Ruppe wrote: I decided to update my compiler today, and regret it for a lot of reasons, but meh. One of the things is std.datetime. A lot of my code uses std.date. It works very, very well for me and I like it. But, the compile process is nagging me about it.

Re: how to migrate to std.datetime

2011-05-08 Thread Jonathan M Davis
I would point out though that'll be a while before std.date and its related functions actually go away, so any code which needs to be converted to std.datetime definitely has time to be reworked however is appropriate. Currently, they're scheduled for deprecation, which just results in the

Why does toUTF16z only work with UTF8 encoding?

2011-05-08 Thread Andrej Mitrovic
toUTF16 can take a char[], wchar[] or dchar[]. But toUTF16z can only take a char[]. Why? I'm storing some text as dchar[] internally and have to pass it to WinAPI Unicode functions which expect null-terminated UTF16 strings. But toUTF16z only works with char[] for some reason.

Re: Why does toUTF16z only work with UTF8 encoding?

2011-05-08 Thread Andrej Mitrovic
I guess this should do it: const(wchar)* toUTF16z(in dchar[] s) { return (toUTF16(s) ~ \000).ptr; }

Re: how to migrate to std.datetime

2011-05-08 Thread Adam D. Ruppe
Jonathan M Davis wrote: I would point out though that'll be a while before std.date and its related functions actually go away, so any code which needs to be converted to std.datetime definitely has time to be reworked however is appropriate. Yeah, but I figure it's better to do it sooner

Re: how to migrate to std.datetime

2011-05-08 Thread Jonathan M Davis
On 2011-05-08 21:29, Adam D. Ruppe wrote: Jonathan M Davis wrote: I would point out though that'll be a while before std.date and its related functions actually go away, so any code which needs to be converted to std.datetime definitely has time to be reworked however is appropriate.

Re: how to migrate to std.datetime

2011-05-08 Thread Nick Sabalausky
Jonathan M Davis jmdavisp...@gmx.com wrote in message news:mailman.74.1304905547.14074.digitalmars-d-le...@puremagic.com... On 2011-05-08 17:46, Adam D. Ruppe wrote: I decided to update my compiler today, and regret it for a lot of reasons, but meh. One of the things is std.datetime. A lot

[Issue 5953] Too many trailing commas are accepted

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5953 kenn...@gmail.com changed: What|Removed |Added CC||kenn...@gmail.com --- Comment #1

[Issue 4745] Non-uniform handling of commas in static initialization of structs

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4745 kenn...@gmail.com changed: What|Removed |Added Keywords||accepts-invalid CC|

[Issue 5952] map(AA.byValue()) problem

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5952 kenn...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 4264] Support opApply in std.algorithm, std.range where possible

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4264 --- Comment #10 from kenn...@gmail.com 2011-05-08 00:00:18 PDT --- *** Issue 5952 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this

[Issue 5951] writeln(AAbyValue()) doesn't show the values

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5951 kenn...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 4704] Problems with aa.byValue()

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4704 --- Comment #2 from kenn...@gmail.com 2011-05-08 00:07:33 PDT --- *** Issue 5951 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this

[Issue 5950] Linker problem with AA.get()

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5950 kenn...@gmail.com changed: What|Removed |Added CC||kenn...@gmail.com

[Issue 1471] Linker error on template function. Error 42: Symbol Undefined ...

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1471 kenn...@gmail.com changed: What|Removed |Added CC||kenn...@gmail.com

[Issue 4323] std.demangle incorrectly handles template floating point numbers

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4323 kenn...@gmail.com changed: What|Removed |Added CC||kenn...@gmail.com --- Comment #1

[Issue 4323] std.demangle incorrectly handles template floating point numbers

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4323 kenn...@gmail.com changed: What|Removed |Added Keywords||patch, wrong-code

[Issue 5955] New: core.demangle fail to parse NaN and Infinity.

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5955 Summary: core.demangle fail to parse NaN and Infinity. Product: D Version: D2 Platform: Other OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2

[Issue 5955] core.demangle fail to parse NaN and Infinity.

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5955 kenn...@gmail.com changed: What|Removed |Added Keywords||patch --- Comment #1 from

[Issue 5952] map(AA.byValue()) problem

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5952 --- Comment #2 from bearophile_h...@eml.cc 2011-05-08 03:35:46 PDT --- (In reply to comment #1) That's because byValue returns an opApply delegate, not a range. *** This issue has been marked as a duplicate of issue 4264 *** This is not a

[Issue 5953] Too many trailing commas are accepted

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5953 --- Comment #2 from bearophile_h...@eml.cc 2011-05-08 03:39:56 PDT --- (In reply to comment #1) Please don't use Python to say a D syntax is invalid. Use the D spec or TDPL. I feel free to show what's the design of other languages, if they

[Issue 5952] map(AA.byValue()) problem

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5952 --- Comment #3 from kenn...@gmail.com 2011-05-08 04:37:55 PDT --- (In reply to comment #2) (In reply to comment #1) That's because byValue returns an opApply delegate, not a range. *** This issue has been marked as a duplicate of issue

[Issue 5953] Too many trailing commas are accepted

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5953 --- Comment #3 from kenn...@gmail.com 2011-05-08 04:40:20 PDT --- (In reply to comment #2) (In reply to comment #1) Please don't use Python to say a D syntax is invalid. Use the D spec or TDPL. I feel free to show what's the design of

[Issue 5956] New: Undocumented mangling of struct value

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5956 Summary: Undocumented mangling of struct value Product: D Version: D2 Platform: All URL: http://d-programming-language.org/abi.html OS/Version: All Status: NEW

[Issue 5921] No mismatched nested comments

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5921 Stewart Gordon s...@iname.com changed: What|Removed |Added CC||s...@iname.com

[Issue 5957] New: Ambiguous mangling of module and template in template symbol args

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5957 Summary: Ambiguous mangling of module and template in template symbol args Product: D Version: D2 Platform: Other OS/Version: Mac OS X Status: NEW

[Issue 5955] core.demangle fail to parse NaN and Infinity.

2011-05-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5955 --- Comment #2 from kenn...@gmail.com 2011-05-08 09:47:01 PDT --- druntime pull request #15 https://github.com/D-Programming-Language/druntime/pull/15 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You

  1   2   >