Re: std.bitarray

2009-09-18 Thread Saaa
Ah, slicing, of course, thanks! 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

printable unicode

2009-09-18 Thread Ellery Newcomer
Is there anything analogous to tango.text.Unicode.isPrintable in phobos?

better than union and array questions

2009-09-18 Thread Saaa
(D1 Phobos) I use the struct below like: Struct[][char[]] _struct; Is there a better way to support arrays of any type? Currently all the code working with these Structs are templated with loads of static ifs in them. Also, is it possible to add a .deepdup property to all arrays? One last

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

2009-09-18 Thread notna
grauzone schrieb: 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 your edit) Stewart. God I'm stupid. Sorry. I guess I

C equivalent for the D float type

2009-09-18 Thread TSalm
Hello, What is the C equivalent for the D float type ? Thanks in advance, TSalm

Re: C equivalent for the D float type

2009-09-18 Thread TSalm
What is the C equivalent for the D float type ? float and double is double. in c, real support is compiler dependant, it may or may not be available. Thanks !

Re:[OT] std.bitarray

2009-09-18 Thread BCS
Could you /please/ include the reply to line in the text of your posts. Most clients seem to add it by default and it makes it much easier for people to find replies to there posts. (I have a filter set up to mark post with my username so, in my case I'd guess that without that line, I'm about

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

2009-09-18 Thread Stewart Gordon
notna wrote: grauzone schrieb: snip http://d.puremagic.com/issues/enter_bug.cgi ??? What do you wanna tell us? Where to report bugs. That while (auto len = file.readBlock(buffer.ptr, buffer.sizeof)) has to work and does not because it's a bug? If you want to know whether a piece of

Re: better than union and array questions

2009-09-18 Thread Saaa
(D1 Phobos) I use the struct below like: Struct[][char[]] _struct; Is there a better way to support arrays of any type? Currently all the code working with these Structs are templated with loads of static ifs in them. Also, is it possible to add a .deepdup property to all arrays? One