Mercurial > projects > dang
comparison ast/Expr.d @ 205:8387cbaa85ab
Small addition to the comments of an assign expr.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Mon, 11 Aug 2008 21:56:21 +0200 |
parents | 227d6a8fb574 |
children |
comparison
equal
deleted
inserted
replaced
204:227d6a8fb574 | 205:8387cbaa85ab |
---|---|
114 private: | 114 private: |
115 Expr[] arguments; | 115 Expr[] arguments; |
116 } | 116 } |
117 | 117 |
118 /** | 118 /** |
119 Assign | 119 The Assign expression contains two expression, a left and a right side, |
120 left being a lvalue, right being a rvalue. | |
121 | |
122 If the right side ain't the same type as the left type, the right side will | |
123 try to be promoted through an implicit cast. If this failes, an error must | |
124 be given. | |
120 */ | 125 */ |
121 class Assign : Expr | 126 class Assign : Expr |
122 { | 127 { |
123 override Assign asAssign() { return this; } | 128 override Assign asAssign() { return this; } |
124 override bool isAssign() { return true; } | 129 override bool isAssign() { return true; } |