Mercurial > projects > dang
comparison basic/Message.d @ 150:6c5a3c0bb4fb
Make switch work again
Also added locations to statements (only filled out for switch)
Added a verification pass
Removed some comments
author | Anders Halager <halager@gmail.com> |
---|---|
date | Mon, 21 Jul 2008 20:35:03 +0200 |
parents | 89db676fbacb |
children | 2a1a635bd531 |
comparison
equal
deleted
inserted
replaced
147:060b6eb16db9 | 150:6c5a3c0bb4fb |
---|---|
144 return msg; | 144 return msg; |
145 } | 145 } |
146 | 146 |
147 Message arg(char[] s) | 147 Message arg(char[] s) |
148 { | 148 { |
149 if (args.length == 11) | 149 if (args.length > 10) |
150 throw new Exception("Sorry, errors only support up to 10 args"); | 150 throw new Exception("Sorry, errors only support up to 10 args"); |
151 args ~= s; | 151 args ~= s; |
152 return this; | 152 return this; |
153 } | 153 } |
154 | 154 |