Re: Scoped import bug?

2013-05-09 Thread Mike Linford
On Thursday, 9 May 2013 at 09:52:12 UTC, Kenji Hara wrote: On Thursday, 9 May 2013 at 05:01:15 UTC, Mike Linford wrote: I'm not sure whether or not I've encountered a bug or whether my understanding of scoped imports is just faulty. blah.d: 1 module blah; 2 3 version(A) 4 { 5

Scoped import bug?

2013-05-08 Thread Mike Linford
I'm not sure whether or not I've encountered a bug or whether my understanding of scoped imports is just faulty. blah.d: 1 module blah; 2 3 version(A) 4 { 5import std.range; 6 } 7 8 struct Blah(R) 9 { 10version(B) 11{ 12 import std.range; 13} 14s

D1 and D2 differences

2011-04-19 Thread Mike Linford
How up to date is http://digitalmars.com/d/2.0/features2.html ? If it's old, what differences can people think of off the tops of their heads that are not listed?

Re: Contracts or Exceptions?

2011-03-29 Thread Mike Linford
Thanks for the responses, everybody. They were helpful :-) -- --Mike Linford

Contracts or Exceptions?

2011-03-29 Thread Mike Linford
h, that I can't tell whether the best approach is to use an in-contract or throw an exception if it doesn't pass my test. What would you guys recommend? -- --Mike Linford

Re: Unit tests in libraries?

2010-08-16 Thread Mike Linford
On Mon, 16 Aug 2010 08:37:35 -0400, Steven Schveighoffer wrote: > On Sat, 14 Aug 2010 23:35:54 -0400, Mike Linford > wrote: > >> Is this a bug? Unit tests do not seem to work in libraries. I'm using >> dmd 1.062 for linux. >> >> mylib.d : >> module my

Unit tests in libraries?

2010-08-14 Thread Mike Linford
: dmd -lib mylib.d dmd main.d mylib.a But does get run when compiled as dmd main.d mylib.d Is this the intended behavior for unit tests in libraries? -- Mike Linford

Re: const(type) vs. const type

2010-07-21 Thread Mike Linford
Thanks for the responses guys, I appreciate it. -- Mike Linford

const(type) vs. const type

2010-07-20 Thread Mike Linford
t QSize, and when I changed it to that it worked fine. I've skimmed through the documentation but don't understand what the difference is. Any help? -- Mike Linford

Re: Templates with strings

2010-07-03 Thread Mike Linford
ot it a couple dozen times (I assume once for each template instance). 2. The reason I don't use CTFE is because I don't know how to be certain its been called at compile time. Apparently using a result in a template like you did will accomplish that, but is there a way I can be sure without making up bogus empty templates? Thanks. -- Mike Linford

Templates with strings

2010-07-03 Thread Mike Linford
12 dstring LATIN = "\u00AA"d ~ "\u00BA"d ~ dcharInterval!(0x00C0, 0x00D6); 13 Thanks. -- Mike Linford

aliasing templates

2010-06-18 Thread Mike Linford
I remember that if you alias a template, it is instantiated and is compiled into the object file/library. What I can't remember is where in the d spec this behavior is described. Can anyone help me out? -- Mike L.

GUIs in D1?

2010-06-06 Thread Mike Linford
What's the current preferred way of doing cross-platform GUIs in nowadays? DWT looks like a good option, but apparently its been dead for a while? --Mike L.