Copyright © 2024 SingChun Lee Bucknell University. All rights reserved. Sites developed using revealjs.
Type Constructor | Formal Type |
---|---|
Mapping (array, list, dictionary) | IndexType -> ContentType |
Recursion (a type that contains one of its own type as a member) |
Java Refs on ALL Objects, enums, arrays. No Refs on primitives.
bool[] arr = new bool[3]; // arr: NULL + Ref(int -> bool)
Apple[] arr2 = new Apple[3]; // arr2: NULL + Ref(int -> (NULL + Ref(Apple)))
C/C++ Refs ONLY on things with *
boolean arr3[3]; // arr3: int -> boolean