November 04, 2023 Learn » Re: Why can't we use strings in C++ methods? | |||
|---|---|---|---|
| |||
...T)
{
T* ptr;
size_t length;
T[] opIndex() => ptr[0 .. length];
}
DSlice!T toDslice(T... | |||
November 04, 2023 Issues » [Issue 24226] operator `~=` appears to lead to useless bound checks | |||
|---|---|---|---|
| |||
...Basile-z <b2.temp@gmx.com> --- oh, that's for size_t overflow I guess. -- | |||
November 04, 2023 Learn » Re: Why can't we use strings in C++ methods? | |||
|---|---|---|---|
| |||
...size_t length;
T *ptr;
_d_dynamicArray() : length(0), ptr(NULL) { }
_d_dynamicArray(size_t... | |||
November 02, 2023 Learn » Re: bigEndian in std.bitmanip | |||
|---|---|---|---|
| |||
...main()
{
//import sdb.string : UnionBytes;
mixin UnionBytes!size_t;
bytes.init = sampleText;
import std.digest... | |||
October 31, 2023 Learn » bigEndian in std.bitmanip | |||
|---|---|---|---|
| |||
...readBytes!size_t;
data.code.writeln(": ", data.bytes);
// 2397076564600448328: Hello D!
}
template readBytes(T, R... | |||
October 28, 2023 Issues » [Issue 24205] New: [Functions] add example for d style, static array, varatic functions | |||
|---|---|---|---|
| |||
...crazymonkyyy@gmail.com ``` auto swizzle(T,I,size_t N)(T array,I[N] indexs... | |||
October 26, 2023 Issues » [Issue 24202] New: std.range.chain ganerated object has wrong .init | |||
|---|---|---|---|
| |||
...42; }
@property bool empty() { return true;}
@property size_t length() { return 0 ; }
}
import std.range... | |||
October 22, 2023 GDC » Re: cross-GDC for tiny embedded Linux | |||
|---|---|---|---|
| |||
...identifier '__SIZEOF_PTHREAD_MUTEX_T'
1227 | byte[__SIZEOF_PTHREAD_MUTEX_T] __size;
| ^
/home/ponyatov/player... | |||
October 20, 2023 Learn » Re: SlicedString Length | |||
|---|---|---|---|
| |||
...struct SlicedString
{
long index, back, next = -1;
size_t len = LEN;
string data = STR;
auto... | |||
October 20, 2023 General » Re: Just another example of missing string interpolation | |||
|---|---|---|---|
| |||
...const char[] fmt, Parts parts)
{
string html;
size_t i;
void advance()
{
while (i < fmt... | |||
Copyright © 1999-2021 by the D Language Foundation