Mercurial > projects > dstress
view run/with_13.d @ 281:b8b7a330468a
with and opIndex
Manfred Nowak <svv1999@hotmail.com>
2005-02-03
news:cttuih$hpb$1@digitaldaemon.com
nntp://news.digitalmars.com/digitalmars.D.bugs/2852
author | thomask |
---|---|
date | Sat, 12 Feb 2005 10:24:24 +0000 |
parents | |
children | a929acac9127 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Manfred Nowak <svv1999@hotmail.com> // @date@ 2005-02-03 // @uri@ news:cttuih$hpb$1@digitaldaemon.com // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/2852 module dstress.run.with_13; class Class{ struct Entry{ int a; } Entry[10] table; Entry opIndex(int i){ return table[i]; } } int main(){ Class c= new Class; with( c[ 1]){ a=0; } return 0; }