Does the tango build by any chance set any distinguishing predefined
version identifiers?
Hello Saaa,
I understand a bitarray being faster than a boolean array as the first
uses
bitwise (hardware) operators.
Is this a correct understanding of the situation?
Why then is a boolean array not implemented in that way?
Because you can't slice a bit array the same way you can slice a int
Don Wrote:
> If D2 -- I haven't been able to get D2 DLLs to work at all. They just
> crash during the initialization (something to do with initialising the
> thread-locals, I think, but I haven't been able to track it down
> completely).
Hi,
I've recently been having a go at writing a COM obje
I understand a bitarray being faster than a boolean array as the first uses
bitwise (hardware) operators.
Is this a correct understanding of the situation?
Why then is a boolean array not implemented in that way?
I expect there to be a good reason which I just don't know.
I'd like to be able to b
Stewart Gordon wrote:
> downs wrote:
>
>> while (auto len = file.readBlock(buffer.ptr, buffer.sizeof))
>
>
> md5_example_2.d(7): expression expected, not 'auto'
> md5_example_2.d(7): found 'len' when expecting ')'
> md5_example_2.d(7): found '=' instead of statement
>
> (this is line 7 after I
Stewart Gordon schrieb:
downs wrote:
while (auto len = file.readBlock(buffer.ptr, buffer.sizeof))
md5_example_2.d(7): expression expected, not 'auto'
md5_example_2.d(7): found 'len' when expecting ')'
md5_example_2.d(7): found '=' instead of statement
(this is line 7 after I removed comment
downs wrote:
while (auto len = file.readBlock(buffer.ptr, buffer.sizeof))
md5_example_2.d(7): expression expected, not 'auto'
md5_example_2.d(7): found 'len' when expecting ')'
md5_example_2.d(7): found '=' instead of statement
(this is line 7 after I removed comments and blank lines from yo
downs wrote:
scope file = new File(fileName, FileMode.In);
// int len;
while (auto len = file.readBlock(buffer.ptr, buffer.sizeof))
// return digestToString(digest);
Thanks, that looks "cleaner"...
notna wrote:
> Stewart Gordon schrieb:
>> The .ptr is necessary, but the cast(uint) isn't. Even if a change of
>> type were necessary, just 1U would do. (U is a suffix meaning
>> unsigned. There's also L meaning long.)
>>
>> Stewart.
>
> Thank Stewart.
>
> As the std.md5-example is not working