Search

July 30, 2021
Learn »
...prev;
    struct test1 *next;
    size_t v1;
    size_t v2;
    size_t v3;
    char data...
July 30, 2021
General »
...be portable without any conversion:

```d
@nogc size_t
myFunction(size_t number) {
return number;
}
```


July 29, 2021
General »
...bytes
extern(C) void writeIntoCBuffer (int* ptr, size_t len) @system;


void writeIntoDBuffer (ref int...
July 28, 2021
Issues »
...b) @nogc {
        import std.algorithm.iteration : map;
        size_t i = 0;
        foreach (el; a.map...
July 28, 2021
Issues »
...com

Example:

---
size_t bytesUsed1()(const void[] array) { return array.length; }
size_t bytesUsed2()(inout...
July 26, 2021
General »
...C) int read(int fd, void *ptr, size_t nBytes);
```

Without reading the code of...
July 26, 2021
General »
...black box:

```d
/// Returns: a valid size_t
size_t favoriteNumber() @safe;

int favoriteElement(ref...
July 26, 2021
General »
...change the return type of favoriteNumber to size_t and let it return 300. Badaboom...
July 25, 2021
General »
...syntax from your proposal:

```d
module example;

size_t favoriteNumber() @safe { return 42; }

int favoriteElement...
July 25, 2021
Learn »
...void
    main() {
        //auto size = __traits(classInstanceSize, TestClass);
        //auto memory = malloc(size)[0..size];
        scope /*notice...
142 143 144 145 146 147 148 149 150 151 152
Next ›   Last »