D - language features
- Craig Black (10/12) Jun 05 2002 I think perhaps you are still thinking only of printing strings to the
Walter wrote:The proper way to do it would be to create a variant type, and then have variable parameter lists be passed as arrays of variants.I think perhaps you are still thinking only of printing strings to the console. There are many other applications for variable parameters. IMO variable parameters is a very fundamental language feature that provides many new capabilities. Limiting variable parameters to variants would force "boxing" and "unboxing". This would, in many cases, obfuscate syntax, and decrease performance. However, I am not against the inclusion of a fundamental variant type into --Craig
Jun 05 2002