Nick Treleaven

Results 35 comments of Nick Treleaven

> generated/linux/debug/64/publictests/std_traits.d(5111): Error: static assert: `is((Object, A, B) == (const(Object), const(A), const(B)))` is false This failure is due to: > alias ImplicitConversionTargets = staticMap!(ApplyLeft!(CopyConstness, T), TransitiveBaseTypeTuple!(T)); `ApplyLeft!(CopyConstness, T)` is failing,...

@RazvanN7 this depends on https://github.com/dlang/dmd/pull/11320/

@schveiguy: > it's not possible to create a buffer inside a trusted escape -- the whole function must be trusted Then wrap the rest of the function in a safe...

@schveiguy sounds like a job for your `default(@safe)` attribute then ;-)

@schveiguy Yes, you're right that doesn't solve it. I think it could be done something like this: ```d // user code void parent(...) { void work(alias safeVoidBuffer) {...} mixin UseSafeVoidBuffer!(T,...

@maxhaton Thanks, I changed the wording as suggested. I also: * Added a section on 'Domain Specific Languages'. * Moved the 'Generating Declarations' heading to the top.

@wilzbach `reserve(0)` could work for this, but it looks like we don't have an implementation for non-zero sizes ATM - would that be a blocker? (I think `reserve` is less...

Optimization: If a class/struct aggregate does not *define* a destructor itself, but one of its fields defines a destructor, we need to do `field = field.init` so the field destructor...

> people relying on undocumented behavior @andralex I suggest we revert #2054 ASAP unless this is merged now. #2054 was merged on 27 Jan (it also says you approved those...

@adamdruppe sort, reserve and assumeSafeAppend modify the array. capacity does not, it's just a getter property similar to length. Fair point about built in properties vs runtime functions and overloading....