January 30, 2023 Issues » [Issue 23661] New: Using typeid from template inside __traits(compiles, ...) causes linker error | |||
|---|---|---|---|
| |||
...contains 5 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000000000 001f00000001 R_X86... | |||
January 23, 2023 Issues » [Issue 23650] New: Using typeid with struct defined in in __traits(compiles, ...) causes linker error | |||
|---|---|---|---|
| |||
...contains 5 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000000000 001f00000001 R_X86... | |||
January 19, 2023 General » Re: New blog post on the cost of compile time | |||
|---|---|---|---|
| |||
...now:
```d
template RT(alias sym) {
static if(is(typeof(sym) R == return))
alias RT... | |||
December 25, 2022 General » Re: templated toString and class inheritance | |||
|---|---|---|---|
| |||
...foreach (sym; ALL) {{
mixin(`alias SYM = __traits(getMember, `~MOD~`, "`~sym~`");`);
static if (is(SYM == class... | |||
December 17, 2022 Issues » [Issue 21886] case where member function used as "alias this sym" is allowed without right `this` context | |||
|---|---|---|---|
| |||
https://issues.dlang.org/show_bug.cgi?id=21886 Iain Buclaw <ibuclaw@gdcproject.org> changed... | |||
September 12, 2022 Learn » Shorten template arguments in debug symbols? | |||
|---|---|---|---|
| |||
...app.fun!"writeln(\"Hello, World\");" => app.fun!"_sym__13" ``` I can pass a pointer to... | |||
August 22, 2022 Learn » Re: typeof(func!0) != typeof(func!0()) | |||
|---|---|---|---|
| |||
...attr()) == U); alias getMyUDAs(alias sym) = Filter!(isOrReturnsU, getUDAs!sym); ``` Or if you want to... | |||
August 22, 2022 Learn » Re: typeof(func!0) != typeof(func!0()) | |||
|---|---|---|---|
| |||
...a type `U` using `hasUDA!(sym, U)` and `getUDAs!(sym, U)`. Is the users uses... | |||
August 20, 2022 General » Re: X macro in D | |||
|---|---|---|---|
| |||
...red, blue, green }
enum getName(alias sym) = __traits(identifier, sym);
string[] colorStrings = [staticMap!(getName, EnumMembers... | |||
August 04, 2022 Learn » Re: How to find all modules in a package? | |||
|---|---|---|---|
| |||
static foreach (sym; __traits(allMembers, mixin("std.string")))
{
// Note that sym is already a string... | |||
Copyright © 1999-2021 by the D Language Foundation