Function prototype + definition in the same file
deadalnix
deadalnix at gmail.com
Wed Sep 26 03:07:47 PDT 2012
Le 25/09/2012 22:43, Steven Schveighoffer a écrit :
>
> But I think what Manu is trying to do is not exactly just "repeat the
> signature", he is using the signature of the original to generate the
> signature of the auto-generated function. Essentially, it's not
> duplicated code on either the source or the compiled level, so disabling
> the ability to declare a function and then implement it later would
> prevent this possibility. I don't think it makes sense to do that.
>
This is why I suggested to improve the di generator instead of allowing
that in the language in a first place.
More information about the Digitalmars-d
mailing list