Re: [Font] Getting font folder on all platforms

2013-09-05 Thread Jacob Carlborg
On 2013-09-05 21:48, Flamaros wrote: I am searching the right way to find fonts folder for each platforms (Windows, linux, macOS X) On Windows it's generally "C:\Windows\Fonts" but a direct access seems brutal, it's certainly expected to retrieve this path by using some register keys? Is someon

Re: Defining inout returned values for ranges

2013-09-05 Thread anonymous
On Thursday, 5 September 2013 at 19:19:42 UTC, Jonathan Crapuchettes wrote: On Wed, 04 Sep 2013 11:49:41 +0200, anonymous wrote: [...] You can use a Template This Parameter [1] instead of inout: auto opSlice(this This)() { static if(is(This == const)) alias QualifiedT = con

Re: [Font] Getting font folder on all platforms

2013-09-05 Thread Flamaros
On Thursday, 5 September 2013 at 19:59:20 UTC, Justin Whear wrote: On Thu, 05 Sep 2013 21:48:03 +0200, Flamaros wrote: I am searching the right way to find fonts folder for each platforms (Windows, linux, macOS X) On Windows it's generally "C:\Windows\Fonts" but a direct access seems brutal,

Re: [Font] Getting font folder on all platforms

2013-09-05 Thread Justin Whear
On Thu, 05 Sep 2013 21:48:03 +0200, Flamaros wrote: > I am searching the right way to find fonts folder for each platforms > (Windows, linux, macOS X) > > On Windows it's generally "C:\Windows\Fonts" but a direct access seems > brutal, it's certainly expected to retrieve this path by using some >

Re: Newbie questions. Which Compiler to start with? Real Time behaviour? Has anyone converted CImg yet?

2013-09-05 Thread Ramon
Maybe I'm somewhat disturbed but I'd rather go the other way round, i.e. (ab)use D as a comfortable and less error prone way to create C Code. But oh well that's wet dreaming anyway for quite some time. To your questions: Considering that you are new to D (like myself), come from gnu compiler wo

[Font] Getting font folder on all platforms

2013-09-05 Thread Flamaros
I am searching the right way to find fonts folder for each platforms (Windows, linux, macOS X) On Windows it's generally "C:\Windows\Fonts" but a direct access seems brutal, it's certainly expected to retrieve this path by using some register keys? Is someone know how it works for linux and/

Re: Defining inout returned values for ranges

2013-09-05 Thread Jonathan Crapuchettes
On Wed, 04 Sep 2013 11:49:41 +0200, anonymous wrote: > On Wednesday, 4 September 2013 at 00:56:39 UTC, Jonathan Crapuchettes > wrote: >> If a range struct (Range) is defined inside another struct (Test), how >> can the constness or mutability of Test be attributed to the return >> type of Range.fr

Re: Multidimensional dynamic array of strings initialized with split()

2013-09-05 Thread Ali Çehreli
On 09/05/2013 01:14 AM, Ludovit Lucenic wrote: I have created a wiki on this one. http://wiki.dlang.org/Read_table_data_from_file Compiling with "DMD64 D Compiler v2.064-devel-52cc287" produces the following errors: * You had byLines in your original code as well. Shouldn't it be byLine? *

Re: template instantiation --- having trouble therewith

2013-09-05 Thread John Colvin
On Thursday, 5 September 2013 at 09:33:00 UTC, John Colvin wrote: On Thursday, 5 September 2013 at 09:11:06 UTC, John Colvin wrote: On Thursday, 5 September 2013 at 09:00:27 UTC, John Colvin wrote: On Tuesday, 3 September 2013 at 11:51:37 UTC, Carl Sturtivant wrote: I'm confused as to what yo

Re: template instantiation --- having trouble therewith

2013-09-05 Thread John Colvin
On Thursday, 5 September 2013 at 09:11:06 UTC, John Colvin wrote: On Thursday, 5 September 2013 at 09:00:27 UTC, John Colvin wrote: On Tuesday, 3 September 2013 at 11:51:37 UTC, Carl Sturtivant wrote: I'm confused as to what you're trying to do... your example code is equivalent to import s

Re: template instantiation --- having trouble therewith

2013-09-05 Thread John Colvin
On Thursday, 5 September 2013 at 09:00:27 UTC, John Colvin wrote: On Tuesday, 3 September 2013 at 11:51:37 UTC, Carl Sturtivant wrote: I'm confused as to what you're trying to do... your example code is equivalent to import std.stdio; int x = 3; int scale( int s) { return x * s; } auto f = &

Re: template instantiation --- having trouble therewith

2013-09-05 Thread John Colvin
On Tuesday, 3 September 2013 at 11:51:37 UTC, Carl Sturtivant wrote: I'm confused as to what you're trying to do... your example code is equivalent to import std.stdio; int x = 3; int scale( int s) { return x * s; } auto f = &scale; writeln( f(7) ); No it isn't according to dmd. My co

Re: Problem with rdmd

2013-09-05 Thread eles
On Saturday, 31 August 2013 at 17:42:21 UTC, Andrei Alexandrescu wrote: On 8/30/13 6:32 AM, eles wrote: On Friday, 30 August 2013 at 11:34:59 UTC, Jacob Carlborg wrote: On 2013-08-30 09:39, eles wrote: One possible solution would be for rdmd to create a link in its temporary directory to the o

Re: Multidimensional dynamic array of strings initialized with split()

2013-09-05 Thread Ludovit Lucenic
I have created a wiki on this one. http://wiki.dlang.org/Read_table_data_from_file