Structs implementing interfaces in D1

Tom S h3r3tic at remove.mat.uni.torun.pl
Tue Feb 10 15:42:15 PST 2009


BCS wrote:
> struct S { int i; int j; int k; int n; }
> 
> 
> S[5] sArr;
> 
> ca I make an inerface out of sArr[2] ?

The new version of my code can do it. Of course you'd still need some 
functions in S and an actual interface there ;)


-- 
Tomasz Stachowiak
http://h3.team0xf.com/
h3/h3r3tic on #D freenode



More information about the Digitalmars-d mailing list