Compound data type: Difference between revisions
Content added Content deleted
(Added EchoLisp) |
m (fixed typo) |
||
Line 392: | Line 392: | ||
(struct Point (x y)) |
(struct Point (x y)) |
||
(Point 3 4) |
(Point 3 4) |
||
→ #<Point> (3 4) |
|||
;; run-time type checking is possible |
;; run-time type checking is possible |
||
(lib 'types) |
(lib 'types) |
||
(struct Point (x y)) |
|||
(struct-type Point Number Number) |
(struct-type Point Number Number) |
||
(Point 3 4) |
(Point 3 4) |