March 19, 2022 Learn » Re: Help needed to learn templates | |||
|---|---|---|---|
| |||
...isArray!T) {
enum size_t rank = 1 + rank!(ElementType!T);
} else {
enum size_t rank... | |||
March 19, 2022 Learn » Help needed to learn templates | |||
|---|---|---|---|
| |||
...enum size_t rank = 1 + rank!(U); // then let’s recurse down.
else
enum size_t... | |||
March 18, 2022 Learn » Re: Basic question about size_t and ulong | |||
|---|---|---|---|
| |||
...as Adam said). > size_t huge = uint.max; // compiles That means size_t is uint... | |||
March 18, 2022 Learn » Re: Basic question about size_t and ulong | |||
|---|---|---|---|
| |||
Only if you are doing a 64 bit build. Try using -m64 | |||
March 18, 2022 Learn » Basic question about size_t and ulong | |||
|---|---|---|---|
| |||
...Isn't ulong an integer? And isn't memory addresses 64 bits long? size_t... | |||
March 17, 2022 Genel » Re: Tek boyutlu diziyi iki boyutlu olarak kullanmak | |||
|---|---|---|---|
| |||
...1]; }
T z(T[3] çizgi) { return çizgi[2]; }
T[3] opIndex(size_t index... | |||
March 16, 2022 Learn » Re: static init c struct with array filed | |||
|---|---|---|---|
| |||
...size_t and a pointer: https://dlang.org/spec/abi.html#arrays I haven't... | |||
March 16, 2022 General » Re: Just an example, why D rocks, and C++ s***s... | |||
|---|---|---|---|
| |||
...file isn't modified then use std::filesystem::file_size to obtain the size, allocate... | |||
March 16, 2022 General » Re: Just an example, why D rocks, and C++ s***s... | |||
|---|---|---|---|
| |||
...t> vec;
if (FILE *fp = fopen("MyTestVectorData.bin", "r"))
{
char buf[1024];
while (size_t... | |||
March 16, 2022 General » Just an example, why D rocks, and C++ s***s... | |||
|---|---|---|---|
| |||
...uint8_t>(file),
std::istream_iterator<uint8_t...ios::skipws);
// get its size:
std::streampos fileSize... | |||
Copyright © 1999-2021 by the D Language Foundation