Changes between Version 22 and Version 23 of IR
- Timestamp:
- 11/22/15 12:08:24 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IR
v22 v23 15 15 * an array is declared without any length expression. When it is initialized it can specify length. 16 16 17 **Can we specify that elements must appear in the order above?** Or would that create a problem in something like 18 {{{ 19 { 20 $integer x=3*y; 21 $integer a[x+1]; 22 } 23 }}} 24 25 17 26 Example: 18 27 … … 43 52 }}} 44 53 45 == Static Types == 54 == Types == 55 56 **Do you need dependent types?** I.e., can parameters to some of the types be arbitrary expressions, or do they have to be constants? 57 58 **Do you need typedefs?** 46 59 47 60 * `$bool` : boolean type, values are `$true` and `$false` … … 72 85 * `union(T1,...,Tn)` : similar to struct 73 86 * `T[]` : array-of-T 87 * **do we need the complete array type `T[e]`, which is a dependent type?** 74 88 * Function<S1,...,Sn;T> 75 89 * function consuming S1,...,Sn and returning T. T can be void. The actual notation is the horrible C notation.
