digitalmars.D - Re: DIP6: Attributes
- Kagamin <spam here.lot> Aug 05 2009
Steven Schveighoffer Wrote:What I'd like to see is something like this possible: void foo (int timeout, string bar, float f = 4.0); void foo(int timeout); call!(foo)("timeout=5,bar=\"hello\""); Taking into account the default value of f, what the parameters are named, and which overload to call. I could certainly do it with C#.
In .net reflection needs no compile time support, it's fully runtime. You don't always have full type information at compile time, unless you want to restrict reflection to compile-everyting-to-one-big-pile scenario.
Aug 05 2009