November 03, 2021 Learn » Re: Using "strcpy" to assign value to dynamic char array | |||
|---|---|---|---|
| |||
...D
void assumedLength(S)(ref S slice, size_t length) {
if(slice.length >= length)
slice... | |||
November 02, 2021 General » Re: Why is D unpopular? | |||
|---|---|---|---|
| |||
...of similar size, made it a requirement for adoption after a visit at AT&T. | |||
November 01, 2021 Learn » Re: Using "strcpy" to assign value to dynamic char array | |||
|---|---|---|---|
| |||
...following struct (showing for int):
struct __Slice__ {
size_t length;
int * ptr;
}
So, .ptr is... | |||
November 01, 2021 Learn » Re: Using "strcpy" to assign value to dynamic char array | |||
|---|---|---|---|
| |||
...struct LengthSetter {
void opAssign(size_t length) {
// Nooo! :)
*cast(size_t*)(&slice) = length;
}
}
return LengthSetter... | |||
October 31, 2021 Learn » Re: abs and minimum values | |||
|---|---|---|---|
| |||
...C. I just don't understand how "promoting...are also of same size, so this is... | |||
October 29, 2021 General » Reviving DCV help needed [Computer Vision library for D] | |||
|---|---|---|---|
| |||
...someone could help me with this. ``` for(size_t d = 0; d < props.disparityRange; d... | |||
October 25, 2021 Issues » [Issue 22436] New: std.zip expand: memory allocation failed | |||
|---|---|---|---|
| |||
...gig file with uncompressed size of 4-gig...of RAM. I don't know why. Maybe... | |||
October 25, 2021 Learn » Re: what's the most efficient way to implement std.container.binaryheap.back()? | |||
|---|---|---|---|
| |||
...size of the heap up to the size...I didn't look at the implementation, but... | |||
October 24, 2021 Learn » Re: std.zip expand: memory allocation failed | |||
|---|---|---|---|
| |||
...gig file with uncompressed size of 4-gig...of RAM. I don't know why. Maybe... | |||
October 23, 2021 Learn » How can I check a newly set ref value | |||
|---|---|---|---|
| |||
...this() {
bar.length = 10;
}
ref int opIndex(size_t i) {
return bar[i];
}
}
void main... | |||
Copyright © 1999-2021 by the D Language Foundation