Is there any syntax for something like that: class Resource(T) if( is(T: FileResource) ){ }
I tried it as above, but it is not accepted. Maybe I am following a wrong syntax.
I tried class Resource(T: FileResource){ } But it is not accepted as well.
tcak via Digitalmars-d-learn Sun, 24 May 2015 20:21:32 -0700
Is there any syntax for something like that: class Resource(T) if( is(T: FileResource) ){ }
I tried it as above, but it is not accepted. Maybe I am following a wrong syntax.
I tried class Resource(T: FileResource){ } But it is not accepted as well.