February 02, 2004 function shortcut for templates | ||||
---|---|---|---|---|
| ||||
we know that class Obj(T) { } is short for template Obj(T) { class Obj { } } could template(T) RetType function(..Parameters..) { } be short for template function(T) { RetType function(..Parameters..) { } } ? template(T) T max(T a,T b) { return a > b ? a : b; } would look nice. greetings, davepermen |
Copyright © 1999-2021 by the D Language Foundation