On Thursday, March 14, 2013 04:55:14 AngryLemming wrote:
> On Thursday, 14 March 2013 at 03:43:03 UTC, bearophile wrote:
> > http://dlang.org/dstyle.html
> >
> > Bye,
> > bearophile
>
> I read this, but this document is very small and without some
> important question's. For example:
>
> interfa
On Thursday, 14 March 2013 at 03:43:03 UTC, bearophile wrote:
http://dlang.org/dstyle.html
Bye,
bearophile
I read this, but this document is very small and without some
important question's. For example:
interface ISome ... or interface Some ...
...
int foo() {or int foo()
...
On 03/14/2013 01:48 AM, Jeremy DeHaan wrote:
Hey guys!
I am working on a binding for D, and am almost finished! I started to
think of some things I might like to work on to improve the binding
after I get everything working, and one of the things I thought of was
rewriting certain parts to use o
Hey guys!
I am working on a binding for D, and am almost finished! I
started to think of some things I might like to work on to
improve the binding after I get everything working, and one of
the things I thought of was rewriting certain parts to use only D
code instead of making calls to the
Ha ha! Just saw this. :)
On 02/21/2013 07:41 AM, jerro wrote:
>> P.S. I am in the process of translating my Turkish D book to
English. For
>> completeness, here are the two chapters about ranges:
>>
>> http://ddili.org/ders/d/araliklar.html
>>
>> http://ddili.org/ders/d/araliklar_baska.html
>
>
On 03/12/2013 10:47 PM, Zach the Mystic wrote:
void func(string[2] a) {}
void func2(T...)(T args) {
static assert(is(typeof(args[0]) == string[2]));
}
void func3(T...)(T args) {
static assert(args[0].length == 2);
}
func(["",""]); // Okay
func2(["",""]); // Error: (is(string[] == stri
And there's actually some named entities like
writeln("\© 2014");
works in D.
On Wednesday, 13 March 2013 at 21:59:54 UTC, Stephen Jones wrote:
Html has xx to access fonts at xxx, does D have something
similar?
writeln("a");
to
writeln(a);
Thanks.
What Andrej said or you can use the unicode escapes (they are in
hexadecimal):
writeln("\u0061");
On Wednesday, 13 March 2013 at 21:59:54 UTC, Stephen Jones wrote:
Html has xx to access fonts at xxx, does D have something
similar?
writeln("a");
to
writeln(a);
Thanks.
No but you can easily create this on your own:
import std.string;
import std.stdio;
string[dchar] transTable;
share
Html has xx to access fonts at xxx, does D have something
similar?
writeln("a");
to
writeln(a);
Thanks.
Array has an horrible code...
I decided to start from scratch.
So I took a close look at the lexer of dmd and took over the
basic functionality.
Result for std.datetime (without profiling so far):
Total time (ms): 5971.66
Repetitions: 200
Sample mode: 28 (101 o
On Tuesday, 12 March 2013 at 23:35:28 UTC, Ali Çehreli wrote:
On 03/12/2013 04:10 PM, Zach the Mystic wrote:
> On Tuesday, 12 March 2013 at 21:47:02 UTC, Zach the Mystic
wrote:
>> void func(string[2] a) {}
>>
>> void func2(T...)(T args) {
>> static assert(is(typeof(args[0]) == string[2]));
>> }
>
On 3/13/13, Adam D. Ruppe wrote:
> Then make a resource file:
Also there's this resource guide:
http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/WindowsResources
It should be ported to the new wiki some time.
On Wed, Mar 13, 2013 at 08:47:03AM -0700, Jonathan M Davis wrote:
> On Wednesday, March 13, 2013 11:59:52 Andrea Fontana wrote:
> > On Wednesday, 13 March 2013 at 10:11:51 UTC, simendsjo wrote:
> > > You can redefine the DDOC macro to use a stylesheet. Add your
> > > base ddoc file on the command l
On Wednesday, 13 March 2013 at 15:49:06 UTC, jerro wrote:
and a template
template t(alias A, alias B) {
// something something
}
Given
alias Tuple!(int, 1) A;
alias Tuple!(int, 1) B;
Is it possible to send this to template t as follows
t!(A, B)
without it expanding to
t!(int, 1, int, 1)
?
and a template
template t(alias A, alias B) {
// something something
}
Given
alias Tuple!(int, 1) A;
alias Tuple!(int, 1) B;
Is it possible to send this to template t as follows
t!(A, B)
without it expanding to
t!(int, 1, int, 1)
?
Not as far as I know. You can work that around it b
On Wednesday, March 13, 2013 11:59:52 Andrea Fontana wrote:
> On Wednesday, 13 March 2013 at 10:11:51 UTC, simendsjo wrote:
> > You can redefine the DDOC macro to use a stylesheet. Add your
> > base ddoc file on the command line with redefined and
> > additional macros.
>
> Is phobos doc based on
Am 13.03.2013 06:38, schrieb Rob T:
On Tuesday, 12 March 2013 at 21:02:20 UTC, Benjamin Thaut wrote:
This is not possible as different kinds of GCs need to generate
different runtime data at compile time. The current GC for example
does not need any runtime data (other then what the D typeinfo s
On Wednesday, 13 March 2013 at 12:59:57 UTC, Gimsom wrote:
Hi, I would like to set an icon for my D2 application but I have
no idea how to do that, could somone explain me? Thanks.
Create the .ico file and put it in your project folder. Then make
a resource file:
whatever_name.rc
with just
On Wednesday, 13 March 2013 at 10:34:14 UTC, simendsjo wrote:
Say you have a tuple type:
struct Tuple(T...) {
alias T Tuple;
}
and a template
template t(alias A, alias B) {
// something something
}
Given
alias Tuple!(int, 1) A;
alias Tuple!(int, 1) B;
Is
Say you have a tuple type:
struct Tuple(T...) {
alias T Tuple;
}
and a template
template t(alias A, alias B) {
// something something
}
Given
alias Tuple!(int, 1) A;
alias Tuple!(int, 1) B;
Is it possible to send this to template t as follows
t!(A, B)
On Wednesday, 13 March 2013 at 11:13:55 UTC, monarch_dodra wrote:
On Wednesday, 13 March 2013 at 10:34:14 UTC, simendsjo wrote:
Say you have a tuple type:
struct Tuple(T...) {
alias T Tuple;
}
and a template
template t(alias A, alias B) {
// something something
}
Give
Hi, I would like to set an icon for my D2 application but I have
no idea how to do that, could somone explain me? Thanks.
On Wednesday, 13 March 2013 at 11:26:24 UTC, simendsjo wrote:
Ahem.. Seems TypeTuple is exactly like my Tuple, so I'll change
my code to use TypeTuple. The question still stands though..
If it's not possible, as you say, I'll try to figure out a
workaround..
Yeah, Tuple is a Tuple in the C++
On Wednesday, 13 March 2013 at 09:35:18 UTC, Andrea Fontana wrote:
I've tried to build documentation using ddoc format and dmd.
dmd -c -D -o- ...
Generated documentation looks ugly and without stylesheet. Am I
wrong? I expected a phobos-like documentation.
So, what do you use to generate you
On Wednesday, 13 March 2013 at 11:21:53 UTC, simendsjo wrote:
On Wednesday, 13 March 2013 at 11:13:55 UTC, monarch_dodra
wrote:
On Wednesday, 13 March 2013 at 10:34:14 UTC, simendsjo wrote:
Say you have a tuple type:
struct Tuple(T...) {
alias T Tuple;
}
and a template
template t(a
On Wednesday, 13 March 2013 at 10:11:51 UTC, simendsjo wrote:
You can redefine the DDOC macro to use a stylesheet. Add your
base ddoc file on the command line with redefined and
additional macros.
Is phobos doc based on some .ddoc file then? I see there's a
number of .ddoc file in github d-pr
I've tried to build documentation using ddoc format and dmd.
dmd -c -D -o- ...
Generated documentation looks ugly and without stylesheet. Am I
wrong? I expected a phobos-like documentation.
So, what do you use to generate your D docs? Doxygen or something
else?
On 13.03.2013 08:03, Druzhinin Alexandr wrote:
On 13.03.2013 13:35, Rainer Schuetze wrote:
If the undefined symbols happen to be related to AssociativeArray, my
current workaround is to add "alias Associative!(Key,Value)
_workaround;" somewhere to force instantiation for the respective Key
an
On 13.03.2013 13:35, Rainer Schuetze wrote:
If the undefined symbols happen to be related to AssociativeArray, my
current workaround is to add "alias Associative!(Key,Value)
_workaround;" somewhere to force instantiation for the respective Key
and Value types.
The precise GC needs some type inf
30 matches
Mail list logo