Mercurial > projects > dil
comparison trunk/src/dil/semantic/Types.d @ 692:d33895f679eb
Tidied up the class Scope a bit.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Tue, 22 Jan 2008 18:32:39 +0100 |
parents | 839c0c61af2b |
children | 8e252b7c1459 |
comparison
equal
deleted
inserted
replaced
691:276e2866f5fd | 692:d33895f679eb |
---|---|
48 { | 48 { |
49 super(null, typ); | 49 super(null, typ); |
50 } | 50 } |
51 } | 51 } |
52 | 52 |
53 /// Dynamic array. | |
53 class TypeDArray : Type | 54 class TypeDArray : Type |
54 { | 55 { |
55 this(Type next) | 56 this(Type next) |
56 { | 57 { |
57 super(next, TYP.DArray); | 58 super(next, TYP.DArray); |
58 } | 59 } |
59 } | 60 } |
60 | 61 |
62 /// Associative array. | |
61 class TypeAArray : Type | 63 class TypeAArray : Type |
62 { | 64 { |
63 Type keyType; | 65 Type keyType; |
64 this(Type next, Type keyType) | 66 this(Type next, Type keyType) |
65 { | 67 { |
66 super(next, TYP.AArray); | 68 super(next, TYP.AArray); |
67 this.keyType = keyType; | 69 this.keyType = keyType; |
68 } | 70 } |
69 } | 71 } |
70 | 72 |
73 /// Static array. | |
71 class TypeSArray : Type | 74 class TypeSArray : Type |
72 { | 75 { |
73 size_t dimension; | 76 size_t dimension; |
74 this(Type next, size_t dimension) | 77 this(Type next, size_t dimension) |
75 { | 78 { |