Nick Treleaven

Results 65 issues of Nick Treleaven

Alias parameters accept basic types so various overloads are unnecessary now. E.g.: ```d template Replace(T, U, TList...); template Replace(alias T, U, TList...); template Replace(T, alias U, TList...); template Replace(alias T,...

Needs Work
Needs Rebase
stalled

This fixes #2455. Instead of changing the assert I just made getSymbols continue dropping qualifiers, because that will work with both existing and future dmd. See https://github.com/dlang/dmd/pull/11320.

Hi, My pull for dmd: https://github.com/dlang/dmd/pull/11320 breaks a unittest in `utils/vibe/internal/meta/codegen.d`: https://github.com/vibe-d/vibe.d/blob/master/utils/vibe/internal/meta/codegen.d#L95 My dmd pull needs that line: > static assert (getSymbols!Type.stringof == TypeTuple!(A, B).stringof); Changed to: > static assert...

See changelog/docs for details. I'll make a dlang.org pull for this soon. This is adapted from a patch by Ketmar Dark: https://issues.dlang.org/show_bug.cgi?id=16269#c4. CC'ing @jmdavis @schveiguy.

Needs Work
Bug Fix
Needs Rebase
stalled

Make more examples compilable/runnable. Use `static assert` instead of `writeln(typeid` for *IsExpression* examples. Show in more places that `static if` identifiers outlast `static if`. Use SPEC_RUNNABLE_EXAMPLE_COMPILE for typeif and SpecialKeyword...

Change `genStruct` eponymous template to enum template. Add 5 sections: argument concatenation, declarations, statements, types, expressions. The examples added are all taken from the spec. Add *Comparison with C preprocessor*...

stalled

This is a change ported from Geany. ~~Needs tests.~~

Hi, Over the years since D2 I've thought about what changes I'd make if starting again. I've written up a list on Google docs, hope that's OK. Not sure if...

Error if a _TemplateThisParameter_ is declared when there's no parent aggregate type ~~or template (it could be for a mixin)~~.

Bug Fix