September 13, 2010
Yes, because LPARAM is defined in the DFL library as a long. Actually, it's hardcoded, there's no static if or versioning. I'll keep an eye on that for when DMD is able to build 64bit binaries.

On Mon, Sep 13, 2010 at 1:09 PM, bearophile <bearophileHUGS@lycos.com> wrote:
> Andrej Mitrovic:
>
>> foreach (ubyte[] buf; file.byChunk(4096))
>> {
>>       sendEditor(SCI_ADDTEXT, buf.length, cast(LPARAM)buf.ptr);
>> }
>> ...
>> SCI_ADDTEXT(int length, const char *s)
>
> Keep in mind that the length of a D array is a size_t, this means a 32 or 64 bit long unsigned word.
September 13, 2010
That could be a good idea.

On Mon, Sep 13, 2010 at 1:09 PM, bearophile <bearophileHUGS@lycos.com> wrote:
> In byChunk() the content of buffer is reused across calls, so you are not wasting allocations. I don't know if it's possible to use a fixed-size char[4096] array to remove the first memory allocation too. I think byChunk() needs a second optional argument, to give it a preallocated buffer (like a slice of a fixed-size array).
>
> Bye,
> bearophile
>
September 14, 2010
gmx.com seems to deal with mailing list e-mails correctly (by actually putting the ones you sent to the list in your inbox when they come from the list), and it has free imap and lots of disk space just like gmail (not to mention that it uses proper folders instead of labels), so I've switched over to it. It's much more pleasant to deal with (at least when using it from an e-mail client; whether the user interface for the site itself is better is more debatable). And switching e-mail addresses gives me a chance to reduce the spam that I get. :)

- Jonathan M Davis
October 14, 2010
 I'll be sure to check it out once I get my phone line back (forgot to
pay the bills..). I'm currently on expensive wireless (Why is wireless
so expensive anyway? What's so special about radiowaves that were
invented half a century ago?..)

Thanks for the heads up!

On 9/14/10, Jonathan M Davis <jmdavisProg@gmx.com> wrote:
> gmx.com seems to deal with mailing list e-mails correctly (by actually
> putting
> the ones you sent to the list in your inbox when they come from the list),
> and
> it has free imap and lots of disk space just like gmail (not to mention that
> it
> uses proper folders instead of labels), so I've switched over to it. It's
> much
> more pleasant to deal with (at least when using it from an e-mail client;
> whether the user interface for the site itself is better is more debatable).
> And
> switching e-mail addresses gives me a chance to reduce the spam that I get.
> :)
>
> - Jonathan M Davis
>
1 2
Next ›   Last »