On 6/02/11 11:35 PM, Julius wrote:
Hi there,
i'm all new to D but not new to programming in general.
I'd like to try D but i didn't find a nice tutorial yet.
I don't want to read a whole book, I just want to get the basics so I can start.
Can you help me find something like that?
Best regards,
Am 06.02.2011 02:58, schrieb Peter Alexander:
How do you set the priority of a thread, or otherwise control how much
CPU time it gets?
depends on operating system - on windows: set the priority to high does
not help if your system isn't under pressure ...
On Thu, 03 Feb 2011 19:11:04 +0100, spir wrote:
On 02/03/2011 02:25 PM, Lars T. Kyllingstad wrote:
On Thu, 03 Feb 2011 13:53:44 +0100, spir wrote:
On 02/03/2011 01:17 PM, Lars T. Kyllingstad wrote:
Why the reluctance to use template constraints? They're so flexible!
:)
I cannot stand the
On 02/07/2011 09:18 AM, Lars T. Kyllingstad wrote:
I cannot stand the is() idiom/syntax ;-) Dunno why. Would happily
get rid of it in favor of type-classes (built eg as an extension to
current interfaces). For instance, instead of:
void func (T) (T t)
if
On 02/07/2011 07:53 AM, GreatEmerald wrote:
Hmm, no, it won't work right on Linux for some reason. This is the output:
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libphobos2.a(deh2_4e7_525.o): In
function `_D2rt4deh213__eh_finddataFPvZPS2rt4deh213DHandlerTable':
On 2011-02-07 07:32, GreatEmerald wrote:
All right, found out how to make it compile. There are two ways:
1) Using DMD for the D part, DMC for the C part and combining them. This is
the batch file I use for that:
dmd -c -lib dpart.d
dmc cpart.c dpart.lib phobos.lib
2) Using DMD for the D
== Quote from Peter Alexander (peter.alexander...@gmail.com)'s article
On 6/02/11 11:35 PM, Julius wrote:
Hi there,
i'm all new to D but not new to programming in general.
I'd like to try D but i didn't find a nice tutorial yet.
I don't want to read a whole book, I just want to get the
Everything is right from what I can tell. This is the code I use for the D part:
module dpart;
import std.c.stdio;
extern(C):
shared int ResultD;
int Process(int Value)
{
printf(You have sent the value: %d\n, Value);
ResultD = (Value % 5);
return ResultD;
On 06/02/11 22:28, Sean Eskapp wrote:
== Quote from Robert Clipsham (rob...@octarineparrot.com)'s article
On 06/02/11 20:29, Sean Eskapp wrote:
Are debug symbols compiled with -gc stored in a separate file? Visual Studio
refuses to debug my things, and windbg seems to be remarkably unhelpful.
On Mon, 07 Feb 2011 06:42:46 -0500, spir denis.s...@gmail.com wrote:
On 02/07/2011 07:53 AM, GreatEmerald wrote:
Hmm, no, it won't work right on Linux for some reason. This is the
output:
/usr/lib/gcc/x86_64-linux-gnu/4.3.2/../../../libphobos2.a(deh2_4e7_525.o):
In
function
On 2/7/11, GreatEmerald past...@gmail.com wrote:
in Windows I am required to explicitly tell DMD to compile
phobos.lib, but
not in Linux. Quite odd.
Check the sc.ini file in dmd/windows/bin, make sure it has at least
this for the LIB variable:
LIB=%@P%\..\lib;
On Mon, 07 Feb 2011 10:28:41 -0500, GreatEmerald past...@gmail.com wrote:
Everything is right from what I can tell. This is the code I use for the
D part:
module dpart;
import std.c.stdio;
extern(C):
shared int ResultD;
int Process(int Value)
{
printf(You have sent the
On 2011-02-07 15:20, Julius wrote:
== Quote from Peter Alexander (peter.alexander...@gmail.com)'s article
On 6/02/11 11:35 PM, Julius wrote:
Hi there,
i'm all new to D but not new to programming in general.
I'd like to try D but i didn't find a nice tutorial yet.
I don't want to read a whole
OK, well this is interesting... I managed to compile it but it's quite odd. In
order to do that, I added a call to main() in my Process() function, and then
added an empty main() in the D part before extern(C). It seems that there are
no
conflicts, too.
Andrej, that line is there. But it really
Julius Wrote:
Hi there,
i'm all new to D but not new to programming in general.
I'd like to try D but i didn't find a nice tutorial yet.
I don't want to read a whole book, I just want to get the basics so I can
start.
Can you help me find something like that?
Best regards, Julius
Well
It will be fixed at some point, but it hasn't been yet.
Oh cool, all right; thanks!
If you want to use an interface as a concept, you can take kenji's
adaptTo module and add this:
template conformsTo(T, Interfaces...)
{
enum conformsTo = AdaptTo!Interfaces.hasRequiredMethods!T;
}
and use it like this
void draw(T)(T shape) if (conformsTo!(T, Shape, Drawable))
This will of
On 02/07/2011 04:32 PM, Steven Schveighoffer wrote:
On Mon, 07 Feb 2011 06:42:46 -0500, spir denis.s...@gmail.com wrote:
On 02/07/2011 07:53 AM, GreatEmerald wrote:
Hmm, no, it won't work right on Linux for some reason. This is the output:
On 02/07/2011 01:07 PM, Torarin wrote:
If you want to use an interface as a concept, you can take kenji's
adaptTo module and add this:
template conformsTo(T, Interfaces...)
{
enum conformsTo = AdaptTo!Interfaces.hasRequiredMethods!T;
}
and use it like this
void draw(T)(T shape) if
On Mon, 07 Feb 2011 13:53:14 -0500, spir denis.s...@gmail.com wrote:
On 02/07/2011 04:32 PM, Steven Schveighoffer wrote:
On Mon, 07 Feb 2011 06:42:46 -0500, spir denis.s...@gmail.com wrote:
On 02/07/2011 07:53 AM, GreatEmerald wrote:
Hmm, no, it won't work right on Linux for some reason.
Michel Fortin napisał:
I just made this pull request today:
https://github.com/D-Programming-Language/dmd/pull/
If you want to test it, you're very welcome. Here is my development
branch for this feature:
https://github.com/michelf/dmd/tree/const-object-ref
Thanks for doing this. Is it
On 2011-02-07 17:11:08 -0500, Tomek Sowiński j...@ask.me said:
Michel Fortin napisał:
I just made this pull request today:
https://github.com/D-Programming-Language/dmd/pull/
If you want to test it, you're very welcome. Here is my development
branch for this feature:
22 matches
Mail list logo