Just an example, why D rocks, and C++ s***s...

kdevel kdevel at vogtner.de
Thu Mar 17 16:56:12 UTC 2022


On Wednesday, 16 March 2022 at 09:19:19 UTC, Carsten Schlote 
wrote:
[...]
> In D this is really simple:
>
> ```D
> import std.file;
> auto inbuffer = cast(byte[]) read("MyTestVectorData.bin");
> ```

What if the program has got an already open socket (int) s or an 
open File f. How easily are the remaining bytes "slurped" in 
those cases?



More information about the Digitalmars-d mailing list