Worst Phobos documentation evar!
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jan 4 11:59:30 PST 2015
On 1/3/2015 8:21 PM, Manu via Digitalmars-d wrote:
>> template function(Arg)
>> {
>> @uda(Arg) void function() { ... }
>> }
>
> Ah, interesting. I've never written a template function like that.
> Hmmm, is that how code is rewritten when compiling? If so, why doesn't
> it just work already?
The stuff outside of the function is not in scope with the function, that's why.
I'm not sure it should be put in the scope.
> I'm just saying where I'm at with it. It got stuck on problems I
> didn't-know-how/couldn't to resolve.
> I need to know my design is sound (ie, works), otherwise committing to
> the design is the wrong thing to do.
You don't need forceinline to know if your design is sound.
More information about the Digitalmars-d
mailing list