Mercurial > projects > dil
comparison trunk/src/dil/ast/Node.d @ 792:05dfe88dd3bb
Added new module TypeRules.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Wed, 27 Feb 2008 02:12:59 +0100 |
parents | 5fe89bb8cbdd |
children |
comparison
equal
deleted
inserted
replaced
791:5fe89bb8cbdd | 792:05dfe88dd3bb |
---|---|
89 size_t size = this.classinfo.init.length; | 89 size_t size = this.classinfo.init.length; |
90 // Copy this object's data. | 90 // Copy this object's data. |
91 byte_t[] data = (cast(byte_t*)this)[0..size].dup; | 91 byte_t[] data = (cast(byte_t*)this)[0..size].dup; |
92 return cast(Node)data.ptr; | 92 return cast(Node)data.ptr; |
93 } | 93 } |
94 | |
95 /// This string is mixed into the constructor of a class that inherits | |
96 /// from Node. It sets the member kind. | |
97 const string set_kind = `this.kind = mixin("NodeKind." ~ typeof(this).stringof);`; | |
94 } | 98 } |
95 | |
96 /// This string is mixed into the constructor of a class that inherits | |
97 /// from Node. It sets the member kind. | |
98 const string set_kind = `this.kind = mixin("NodeKind." ~ typeof(this).stringof);`; |