tango version identifiers

2009-09-17 Thread Ellery Newcomer
Does the tango build by any chance set any distinguishing predefined version identifiers?

Re: std.bitarray

2009-09-17 Thread BCS
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

Re: DLLs and headaches

2009-09-17 Thread Richard Webb
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

std.bitarray

2009-09-17 Thread 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? I expect there to be a good reason which I just don't know. I'd like to be able to b

Re: D1: std.md5: corrections for the given example

2009-09-17 Thread downs
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

Re: D1: std.md5: corrections for the given example

2009-09-17 Thread notna
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

Re: D1: std.md5: corrections for the given example

2009-09-17 Thread Stewart Gordon
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

Re: D1: std.md5: corrections for the given example

2009-09-17 Thread notna
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"...

Re: D1: std.md5: corrections for the given example

2009-09-17 Thread downs
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