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
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
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?
Thanks for the responses, everybody. They were helpful :-)
--
--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
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
:
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
Thanks for the responses guys, I appreciate it.
--
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
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
12 dstring LATIN = "\u00AA"d ~ "\u00BA"d ~ dcharInterval!(0x00C0,
0x00D6);
13
Thanks.
--
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.
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.
13 matches
Mail list logo