On 2012-06-13 15:34, Nick Treleaven wrote:
Maybe it would be better for the template interface body to contain
method signatures/members rather than code?
I would prefer that.
I think it might be an interesting idea, but it would probably need to
be significantly better than the current way
On Tuesday, 12 June 2012 at 17:56:26 UTC, Nathan M. Swan wrote:
When writing a generic function which takes an unknown type,
the signature is written like so:
void fun(L)(L l) if (isList!L);
While writing a generic interface is written like so:
template isList(L) {
enum bool isList = is(t
On Wednesday, 13 June 2012 at 13:34:25 UTC, Nick Treleaven wrote:
On 12/06/2012 18:56, Nathan M. Swan wrote:
When writing a generic function which takes an unknown type,
the
signature is written like so:
void fun(L)(L l) if (isList!L);
While writing a generic interface is written like so:
te
On 12/06/2012 18:56, Nathan M. Swan wrote:
When writing a generic function which takes an unknown type, the
signature is written like so:
void fun(L)(L l) if (isList!L);
While writing a generic interface is written like so:
template isList(L) {
enum bool isList = is(typeof(
(inout int _dummy=0