> -Original Message-
> From: digitalmars-d-learn@puremagic.com
> Sent: Sun, 28 Dec 2014 22:21:20 +
> To: digitalmars-d-learn@puremagic.com
> Subject: Re: Problem with immutables and Template typeof(this)
>
> On Sunday, 28 December 2014 at 22:07:31 UTC, Auoro
> -Original Message-
> From: digitalmars-d-learn@puremagic.com
> Sent: Sun, 28 Dec 2014 22:18:43 +
> To: digitalmars-d-learn@puremagic.com
> Subject: Re: Problem with immutables and Template typeof(this)
>
> On Sunday, 28 December 2014 at 22:07:31 UTC, Auoro
I have been trying to figure templates out...
template ExampleTemplate(T)
{
struct ExampleTemplate
{
T value;
// constructor
auto this(T value)
{
this.value = value;
return this;
}
// opAdd
typeof(this) opAdd
48:32 UTC, AuoroP via
> Digitalmars-d-learn wrote:
>> ulong jpegSize,
>
> Without looking too closely, this sets off an alarm to me: C's
> long and D's long are not really compatible because C's long has
> variable size and D's long is 64 bit.
>
&
I'm pretty sure my problem isn't my code but how I've built the
lib. The problem is I'm calling external C code and I am getting
valid data out of it but /some/ of my arguments to it is
corrupted.
A common thread in this newsgroup seems to be people calling
Extern(Windows). I don't that is me bec