[Feature Request] Forwardable as Ruby does

Denis Shelomovskij verylonglogin.reg at gmail.com
Mon Mar 5 22:39:42 PST 2012


05.03.2012 22:06, bioinfornatics пишет:
> opDispaytch is not really easy to use for this. my first code do this in
> 1 line and it is easy to understand hat it do. In 1 line i forward 3
> method to a member. This save time, code and bug.
>
>

So what's the problem with opDispatch?

By the way, don't do things like mixin(SomeTypeArgument.stringof) - it 
will not work in every case (name conflicts, nested structs/classes 
etc.) and it's unnecessary conversion to string and back to code. So it 
wasn't a good idea to change dav1d's variant this way.


More information about the Digitalmars-d mailing list