November 11 Issues » [Issue 24854] New: An @disabled opAssign is generated when it doesn't need to be @disabled | |||
|---|---|---|---|
| |||
...foreach(sym; __traits(getOverloads, T, "opAssign"))
{
pragma(msg, typeof(sym).stringof ~ ": " ~
(__traits(isDisabled, sym) ? "disabled... | |||
April 17 Learn » Re: Making one struct work in place of another for function calls. | |||
|---|---|---|---|
| |||
...sym; "someFunctionUno someFunctionDos someFunctionTres".split) {
mixin(format(`auto %s(TypeA input) => %s(TypeB(input));`, sym... | |||
April 01 Learn » Re: Opinions on iterating a struct to absorb the decoding of a CSV? | |||
|---|---|---|---|
| |||
...of the panacea that is `is()` statements.
```d
static if (is(typeof({enum X = SYM;})))
``` | |||
April 01 Learn » Re: Opinions on iterating a struct to absorb the decoding of a CSV? | |||
|---|---|---|---|
| |||
...SYM = __traits(getMember, T, sym); else alias SYM = __traits(getMember, t, sym); enum NAME = sym... | |||
March 07 Learn » Re: Hidden members of Class objects | |||
|---|---|---|---|
| |||
...static foreach (sym; __traits(allMembers, T))
static if (!["__ctor","__dtor","__xdtor","Monitor","factory"].canFind(sym)) {{
...
```
| |||
March 04 General » Re: Generic memory allocation in D | |||
|---|---|---|---|
| |||
...this:
// true means success
if (checkSymbolAccess(sc, sym))
// it's accessible
else
// it's not... | |||
February 12 Issues » [Issue 24389] New: importC: Building zlib in Phobos with importC fails on FreeBSD 14 | |||
|---|---|---|---|
| |||
...define __sym_compat(sym,impl,verid) \
__asm__(".symver " #impl ", " #sym "@" #verid)
#define __sym_default(sym... | |||
December 21, 2023 General » Re: D is our last hope | |||
|---|---|---|---|
| |||
...uint;
alias Elf64_Half = ushort;
struct Elf64_Sym
{
Elf64_Word st_name;
ubyte st_info... | |||
September 10, 2023 General » Re: D Programming: How to Define and Use Custom Attributes | |||
|---|---|---|---|
| |||
...alias SYM) if (isAggregateType!THIS) {
enum bool isMemberVariable = !(isFunction!SYM || isType!SYM || __traits(isTemplate, SYM... | |||
July 09, 2023 Issues » [Issue 24042] New: ImportC: Error: no definition for static 'function' | |||
|---|---|---|---|
| |||
...f.sym.Sseg == UNKNOWN)
{
printf("Error: no definition for static %s\n", prettyident(f.sym... | |||
Copyright © 1999-2021 by the D Language Foundation