Compiling DMD on MAC OS X

2012-02-19 Thread Tyro[a.c.edwards]
Hi all, I've just installed DMD 2.058 and attempted to compile a little script but was greeted with the following error: gcc: Invalid argument I used the .dmg installer from http://www.dlang.org/download.html and issued the command: dmd average Is there something I'm missing? Thanks,

Re: Template Inheritance

2012-02-19 Thread Jacob Carlborg
On 2012-02-19 02:07, Jonathan M Davis wrote: On Sunday, February 19, 2012 00:55:59 %u wrote: I've been working on porting an old D library to D2, and I'm running into a nasty issue with templates and inheritance. I've got a base class like this: class Reader { void get(T)(ref T[] buffer);

Re: Compiling DMD on MAC OS X

2012-02-19 Thread kraybourne
On 2/19/12 09:20 , Tyro[a.c.edwards] wrote: Hi all, I've just installed DMD 2.058 and attempted to compile a little script but was greeted with the following error: gcc: Invalid argument I used the .dmg installer from http://www.dlang.org/download.html and issued the command: dmd average Is

Re: Template Inheritance

2012-02-19 Thread Jonathan M Davis
On Sunday, February 19, 2012 12:34:07 Jacob Carlborg wrote: Template functions are non-virtual. You can't derive from them. If you want the derived classes to have the same functions, you must redefine them in the derived class. - Jonathan M Davis Yeah, but isn't that an overload,

vim tips for D development

2012-02-19 Thread simendsjo
A question for the vim users out there: What plugins etc are you using when writing D code? I'm using the patched ctags, updated d.syntax and snipMate, but are there other good plugins I could use?

Re: vim tips for D development

2012-02-19 Thread James Miller
I use vim, and I find that just vanilla vim does the job fine for me. I don't tend to use autocomplete unless its really smart (like using clang-complete for C/C++), and I should probably grab the latest D syntax file. mostly just judicious use of / and numbergg gets me most places.

Re: vim tips for D development

2012-02-19 Thread Kiith-Sa
On Sunday, 19 February 2012 at 13:37:19 UTC, simendsjo wrote: A question for the vim users out there: What plugins etc are you using when writing D code? I'm using the patched ctags, updated d.syntax and snipMate, but are there other good plugins I could use? I use SnipMate with many custom

replacement for rfind in 2.058

2012-02-19 Thread Jay Norwood
I see rfind is deprecated and std.regexp is deprecated, and no rfind in std.string, so is there some equivalent operation in std.regex?

Re: replacement for rfind in 2.058

2012-02-19 Thread Jay Norwood
On Sunday, 19 February 2012 at 18:55:21 UTC, Jay Norwood wrote: I see rfind is deprecated and std.regexp is deprecated, and no rfind in std.string, so is there some equivalent operation in std.regex? I was trying to rebuild bud wit 2.058, and so at around line 2078 I replaced the rfind by

Re: vim tips for D development

2012-02-19 Thread simendsjo
On Sun, 19 Feb 2012 17:00:37 +0100, Kiith-Sa 4...@theanswer.com wrote: On Sunday, 19 February 2012 at 13:37:19 UTC, simendsjo wrote: A question for the vim users out there: What plugins etc are you using when writing D code? I'm using the patched ctags, updated d.syntax and snipMate, but are

RedBlackTree.lowerBound

2012-02-19 Thread Ellery Newcomer
Is it just me or are lowerBound and upperBound really unintuitively named? From DDOC: c.lowerBound(v) Returns a range of all elements strictly less than v c.upperBound(v) Returns a range of all elements strictly greater than v. So c.lowerBound(v) will return a range for which v is the ..

Re: vim tips for D development

2012-02-19 Thread Kiith-Sa
On Sunday, 19 February 2012 at 20:09:58 UTC, simendsjo wrote: On Sun, 19 Feb 2012 17:00:37 +0100, Kiith-Sa 4...@theanswer.com wrote: Thanks. supertab and autoComplPop seems really nice. A couple of other stuff to add to the list: surround, delimitMate and smart semicolon in .vimrc: inoremap

Everything on the Stack

2012-02-19 Thread Janthinidae
Thanks to a reddit thread I stumbled over D and thought I should give it a chance. I'm currently working on project where hard RT requirements matter. In most places the GC is not suitable. I tried to port some core functionaly of an existing application which is currently written in C/C++. I

Re: RedBlackTree.lowerBound

2012-02-19 Thread Ali Çehreli
Note: I have written the following by ignoring the RedBlackTree in the title. I have been thinking about std.range.lowerBound, but I think they have the same semantics. On 02/19/2012 01:44 PM, Ellery Newcomer wrote: Is it just me or are lowerBound and upperBound really unintuitively named?

Re: split with delimiter

2012-02-19 Thread bioinfornatics
Le vendredi 17 février 2012 à 02:00 +0100, Brad Anderson a écrit : On Friday, 17 February 2012 at 00:47:35 UTC, bioinfornatics wrote: Le vendredi 17 février 2012 à 01:33 +0100, bioinfornatics a écrit : reading http://www.d-programming-language.org/phobos/std_array.html#split

Re: split with delimiter

2012-02-19 Thread Jonathan M Davis
On Monday, February 20, 2012 03:04:42 bioinfornatics wrote: Then, someone can tell if is bug ? if it will be fixed ? What's the documentation say? That's pretty the only way to know whether it's a bug or not when you don't know whether the behavior is what it's supposed to be. Does it do what