Mercurial > projects > ldc
annotate test/with1.d @ 40:8b0e809563df trunk
[svn r44] Lots of bug fixes.
New array literal support
New array ~= operator support (for single element)
New with statement support
More...
author | lindquist |
---|---|
date | Fri, 19 Oct 2007 07:43:21 +0200 |
parents | |
children | c44e6a711885 |
rev | line source |
---|---|
lindquist@40 | 1 module with1; |
lindquist@40 | 2 struct S |
lindquist@40 | 3 { |
lindquist@40 | 4 int i; |
lindquist@40 | 5 float f; |
lindquist@40 | 6 } |
lindquist@40 | 7 void main() |
lindquist@40 | 8 { |
lindquist@40 | 9 S s; |
lindquist@40 | 10 with(s) |
lindquist@40 | 11 { |
lindquist@40 | 12 i = 0; |
lindquist@40 | 13 f = 3.4; |
lindquist@40 | 14 } |
lindquist@40 | 15 } |