Next | Atypical Types | 17 |
ALGOL (1960), Pascal (1968), C (1971)
These are all very similar
Attempt to extend type system beyond scalars
array of type
pointer to type (‘reference’ in ALGOL)
set of type (Pascal only)
record of types (struct in C)
function returning type
And arbitrary compositions of these operations:
/* This is why we love C */ int *((*murgatroyd[17])(void *));
Next | ![]() |
Copyright © 1999,2008 Mark Dominus |