Re: LDC -noruntime

2012-07-07 Thread Jonathan M Davis
On Saturday, July 07, 2012 07:27:52 Alex Rønne Petersen wrote: Is overriding a @safe function with @trusted allowed/meant to be allowed? I hope so, otherwise this is going to be a severe limitation. Well, an overriding function in a derived class cannot be any looser than the one it's

Re: LDC -noruntime

2012-07-07 Thread Jacob Carlborg
On 2012-07-06 21:42, David Nadlinger wrote: On Friday, 6 July 2012 at 09:38:13 UTC, Jacob Carlborg wrote: It will not prevent the compiler for generating calls to the runtime. It should – TypeInfo references will still be generated, though. So what happens with code like this: auto o = new

Re: Garbage Collection Pitfall in C++ but not in D?

2012-07-07 Thread David Nadlinger
On Saturday, 7 July 2012 at 03:02:07 UTC, akaz wrote: On Friday, 6 July 2012 at 21:10:56 UTC, Simon wrote: On 06/07/2012 16:39, Alex Rønne Petersen wrote: Never mind what D says, even in C/C++ just doing the p += 10 is invalid. Creating a pointer that points at invalid memory is just as

Re: Using std.net.curl

2012-07-07 Thread Gary Willoughby
Yeah invoking the linker manually works fine. To save me from that each time i've actually added '-L-lphobos2' to the end of 'DFLAGS' in '/etc/dmd.conf' so phobos is always before curl in the linker argument list. When the program is compiled '-L-lphobos2' appears twice in the args but that's

What was the reason for not including std.net.curl in the Windows phobos library?

2012-07-07 Thread Gary Willoughby
What was the reason for not including 'std.net.curl' in the Windows phobos library? I've added it and recompiled phobos for use but i just wondered why it was missing? For others i blogged how to recompile with curl support here: http://kalekold.net/index.php?post=19

Re: What was the reason for not including std.net.curl in the Windows phobos library?

2012-07-07 Thread Kevin Cox
On Jul 7, 2012 8:45 AM, Gary Willoughby d...@kalekold.net wrote: What was the reason for not including 'std.net.curl' in the Windows phobos library? IIRC it is licencing issues, they can't include curl in the distribution without certain requirements that were deemed to awkward to implement.

Re: What was the reason for not including std.net.curl in the Windows phobos library?

2012-07-07 Thread Gary Willoughby
IIRC it is licencing issues, they can't include curl in the distribution without certain requirements that were deemed to awkward to implement. Ah, right.

Need som assistense with readf();

2012-07-07 Thread Mr. P-teo
So iv just been getting into D programming, im liking it alot so far but i have come across one issue that i am unable to find a solution for. Basically whenever i use readf(); to gather console input it wont run the program if there is code afterwards. Here is an example: import

Re: Need som assistense with readf();

2012-07-07 Thread Ali Çehreli
On 07/07/2012 03:35 PM, Mr. P-teo wrote: Basically whenever i use readf(); to gather console input it wont run the program if there is code afterwards. readf() does not automatically consume the end-of-line character. That works fine, but if i try and imput 2 numbers to seperate variables

Re: why is string not implicit convertable to const(char*) ?

2012-07-07 Thread akaz
Well, then we're going to have to agree to disagree on that one. While some design decisions may have made more sense at the time they were made or the ultimate pros and cons may not have been clear at the time, I think that zero- terminated strings are one of the design decisions which was