This is just an example...
In windows WNDCLASS is a struct and RegisterClass is a function
that takes a pointer to an instance of that class.
In C99 I can use "compound literals" to write this and have it
construct an instance of that struct on the stack, set the values
I've initialized, and
I've been unable to find a clear definitive answer to this so
please point me to one if it already exists in the manual or the
forums.
Is it safe to cast pointer types?
double data;
long p = *cast(long*)&data;
(Excuse any silly syntax errors as I'm doing this on my phone).
This used
On Thursday, 12 May 2016 at 09:25:49 UTC, Stefan Koch wrote:
On Thursday, 12 May 2016 at 08:41:25 UTC, John Burton wrote:
I've been unable to find a clear definitive answer to this so
please point me to one if it already exists in the manual or
the forums.
Is it safe to cast pointer types?
I've recently gone back to looking at D and like what I see.
I've mostly been looking at it on Linux where it seems efficient
and stable.
However the project I'd really like to use it for is on windows
(x86-64 but if at all possible I'd like to compiler for x86 as
well). But my experience on
On Tuesday, 23 August 2016 at 21:25:29 UTC, Cauterite wrote:
On Tuesday, 23 August 2016 at 21:15:40 UTC, John Burton wrote:
Well, you're fighting a losing battle by trying to use GDC/LDC
on Windows, since Windows is priority #2 for D, and GDC/LDC are
still struggling with priority #1 (Linux
On Tuesday, 23 August 2016 at 21:29:31 UTC, Adam D. Ruppe wrote:
On Tuesday, 23 August 2016 at 21:15:40 UTC, John Burton wrote:
If there a GDC port to windows at all? It seems there is, but
if there is it's well hidden...
It is at the bottom of the downloads page.
https://gdcproject.org/downl
On Tuesday, 23 August 2016 at 22:15:33 UTC, John Colvin wrote:
If you have no patience for any bugs and must have the best
optimised code on windows, D isn't quite there yet. However, if
you can stomach a little pain, the reward is pretty good.
P.S. relying on the microsoft linker is not much
On Thursday, 25 August 2016 at 11:52:51 UTC, Kagamin wrote:
On Thursday, 25 August 2016 at 09:57:28 UTC, John Burrton wrote:
I'll try to find a small test case that crashes the compiler
in visual D and check out what version I'm using etc, and
submit a bug report if I am able.
Did you try to
On Thursday, 25 August 2016 at 20:47:28 UTC, David Nadlinger
wrote:
On Thursday, 25 August 2016 at 20:31:59 UTC, John Burton wrote:
I'll try to get a self contained report tomorrow.
Please do – the -deps switch is certainly not the most
well-tested part of LDC. It mostly inherits this part of
On Tuesday, 30 August 2016 at 10:50:17 UTC, John Burton wrote:
I'm willing to admit I might be the only one :P But I'd much
rather see the "better C" side as my first view of typical D
code than this.
And I want to be clear... None of this is a complaint. I just
wanted to post what personally
On Tuesday, 30 August 2016 at 11:17:33 UTC, Chris wrote:
On Tuesday, 30 August 2016 at 10:50:17 UTC, John Burrton wrote:
This is why the example on the front page put me off for a
long time :-
stdin
.byLineCopy
.array
.sort!((a, b) => a > b) // descending order
On Tuesday, 30 August 2016 at 14:11:56 UTC, Andrei Alexandrescu
wrote:
On 08/30/2016 06:50 AM, John Burrton wrote:
This is why the example on the front page put me off for a
long time :-
stdin
.byLineCopy
.array
.sort!((a, b) => a > b) // descending order
.e
12 matches
Mail list logo