digitalmars.D.learn - Compile-time predicate for checking whether an aggregate field is
- Per =?UTF-8?B?Tm9yZGzDtnc=?= (2/2) Mar 02 How do I at compile-time check whether an aggregate field is
- kinke (2/4) Mar 02 https://dlang.org/phobos/std_traits.html#hasStaticMember perhaps.
- Per =?UTF-8?B?Tm9yZGzDtnc=?= (3/8) Mar 02 Thanks. Neither my web searches nor ChatGPT plus couldn't figure
How do I at compile-time check whether an aggregate field is static?
Mar 02
On Saturday, 2 March 2024 at 15:22:03 UTC, Per Nordlöw wrote:How do I at compile-time check whether an aggregate field is static?https://dlang.org/phobos/std_traits.html#hasStaticMember perhaps.
Mar 02
On Saturday, 2 March 2024 at 19:09:23 UTC, kinke wrote:On Saturday, 2 March 2024 at 15:22:03 UTC, Per Nordlöw wrote:Thanks. Neither my web searches nor ChatGPT plus couldn't figure that out.How do I at compile-time check whether an aggregate field is static?https://dlang.org/phobos/std_traits.html#hasStaticMember perhaps.
Mar 02