September 18, 2023 General » Is it possible to override and overload class Object? | |||
|---|---|---|---|
| |||
...struct Array(T)
{
T* ptr;
size_t length;
ref auto opIndex(size_t i... | |||
September 17, 2023 Learn » Re: Dinamyc arrays | |||
|---|---|---|---|
| |||
...size_t x, size_t y)
{
return array[x * dim + y];
}
auto opIndexAssign(size_t... | |||
September 17, 2023 Genel » Re: Slice Operator Overloading | |||
|---|---|---|---|
| |||
... ref T opIndex(size_t i) => ptr[i]; auto opSlice(size_t beg, size_t... | |||
September 17, 2023 Announce » Re: SerpentOS departs from Dlang | |||
|---|---|---|---|
| |||
...is:
```d
class MyRoot : void {
void opRCWriteBarrier(size_t fieldOffset, void* pointer) {
myCyclicDetector.set(cast... | |||
September 15, 2023 Learn » Re: Help on array pointers | |||
|---|---|---|---|
| |||
...import std.algorithm: any, canFind;
string[] _names;
size_t len = 19;
char[] invalid = (cast(char... | |||
September 15, 2023 Learn » Re: Help on array pointers | |||
|---|---|---|---|
| |||
...import std.algorithm: any, canFind;
string[] _names;
size_t length = 20;
char[] invalid = (cast(char... | |||
September 14, 2023 Learn » Re: Help on array pointers | |||
|---|---|---|---|
| |||
...import std.algorithm: any, canFind;
string[] _names;
size_t length = 20;
char[] invalid = (cast(char... | |||
September 14, 2023 Learn » Help on array pointers | |||
|---|---|---|---|
| |||
...stdc.stdlib;
import std.algorithm: any, canFind;
size_t length = 20;
char[] invalid = (cast(char... | |||
September 10, 2023 General » Re: D Programming: How to Define and Use Custom Attributes | |||
|---|---|---|---|
| |||
...false;
}
}
return true;
}
size_t numRequiredArguments(alias FUNC)() pure @safe nothrow {
size_t numReq = 0... | |||
September 09, 2023 Learn » Re: malloc error when trying to assign the returned pointer to a struct field | |||
|---|---|---|---|
| |||
...asked for size bytes, and malloc gave you size bytes. It doesn't "know" anything... | |||
Copyright © 1999-2021 by the D Language Foundation