annotate run/enum_08.d @ 193:7203f4521cb2

John Reimer <brk_6502@yahoo.com> 2004-12-11 news:cpff12$31g6$1@digitaldaemon.com nntp://news.digitalmars.com/D.gnu/890
author thomask
date Sun, 12 Dec 2004 09:35:37 +0000
parents a33ad7189d21
children f87ba6507260
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 104
diff changeset
1 // $HeadURL$
a33ad7189d21 1) news:// -> news:
thomask
parents: 104
diff changeset
2 // $Date$
a33ad7189d21 1) news:// -> news:
thomask
parents: 104
diff changeset
3 // $Author$
a33ad7189d21 1) news:// -> news:
thomask
parents: 104
diff changeset
4
104
ed7ca5dc2cc2 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff changeset
5 // @author@ shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp>
ed7ca5dc2cc2 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff changeset
6 // @date@ 2004-11-04
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 104
diff changeset
7 // @uri@ news:20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp
a33ad7189d21 1) news:// -> news:
thomask
parents: 104
diff changeset
8 // @url@ nntp://digitalmars.com/D.gnu/831
104
ed7ca5dc2cc2 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff changeset
9
ed7ca5dc2cc2 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff changeset
10 module destress.run.enum_08;
ed7ca5dc2cc2 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff changeset
11
ed7ca5dc2cc2 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff changeset
12 int main(){
193
7203f4521cb2 John Reimer <brk_6502@yahoo.com>
thomask
parents: 140
diff changeset
13 enum MyEnum{
7203f4521cb2 John Reimer <brk_6502@yahoo.com>
thomask
parents: 140
diff changeset
14 A=-1,
7203f4521cb2 John Reimer <brk_6502@yahoo.com>
thomask
parents: 140
diff changeset
15 AA,
7203f4521cb2 John Reimer <brk_6502@yahoo.com>
thomask
parents: 140
diff changeset
16 B
7203f4521cb2 John Reimer <brk_6502@yahoo.com>
thomask
parents: 140
diff changeset
17 };
104
ed7ca5dc2cc2 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff changeset
18 MyEnum e = -MyEnum.B;
ed7ca5dc2cc2 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff changeset
19 assert(MyEnum.B>0);
ed7ca5dc2cc2 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff changeset
20 assert(e<0);
ed7ca5dc2cc2 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff changeset
21 return 0;
ed7ca5dc2cc2 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff changeset
22 }