August 02, 2021 Issues » [Issue 22169] Mark as pure core.sys.posix.string: memccpy, stpcpy, stpncpy, strnlen | |||
|---|---|---|---|
| |||
...dlang/druntime pull request #3534 "Mark as pure core.sys.posix.string: memccpy, stpcpy, stpncpy... | |||
August 02, 2021 Issues » [Issue 22169] New: Mark as pure core.sys.posix.string: memccpy, stpcpy, stpncpy, strnlen | |||
|---|---|---|---|
| |||
...22169
Issue ID: 22169
Summary: Mark as pure core.sys.posix.string: memccpy, stpcpy,
stpncpy... | |||
August 01, 2021 General » Re: Do you use D's GC? | |||
|---|---|---|---|
| |||
...than Godot, but if you want a pure D game engine you might consider it... | |||
July 31, 2021 Learn » Any way to create derived classes from Exception with canned messages? | |||
|---|---|---|---|
| |||
...etc. But we can't all eat *pure* syntactic sugar or we'd die of... | |||
July 30, 2021 General » Re: C++ mutable in D | |||
|---|---|---|---|
| |||
...const, or tail const in D; just pure transitive const. Also remember that casting away... | |||
July 29, 2021 General » Re: Casting ulong to int with @nogc | |||
|---|---|---|---|
| |||
...use this:
int ToInt(in ulong u) pure
{
assert(u<=int.max);
return cast(int... | |||
July 29, 2021 Issues » [Issue 22154] Pure functions should be able to use only the address of a global | |||
|---|---|---|---|
| |||
...like a great way to violate purity:
pure int fun(int* x) {
enum int* addr... | |||
July 29, 2021 Issues » [Issue 22154] Pure functions should be able to use only the address of a global | |||
|---|---|---|---|
| |||
...net
As does making the global immutable:
pure int fun(int* x) {
static immutable int... | |||
July 29, 2021 Issues » [Issue 22154] Pure functions should be able to use only the address of a global | |||
|---|---|---|---|
| |||
...enum appears to work:
---
__gshared int a;
pure int fun(int* x) {
enum int* addr... | |||
July 28, 2021 Issues » [Issue 22154] Pure functions should be able to use only the address of a global | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=22154 --- Comment #2 from Andrei Alexandrescu <andrei... | |||
Copyright © 1999-2021 by the D Language Foundation