Tina Petzel <[email protected]> writes: > Hello Michael, > >> how can I access an array (well I think in Scheme that's no real arrays): >> > #(define myArr '#(10 20 30)) > > in scheme lingo this is a vector, which is essentially a pointer array.
No, it isn't. In terms of the Scheme machine, every piece of data is either an immediate cell type, or a pointer. The example #(define myArr #(10 20 30)) (the quote character should make no difference whatsoever) happens in Guile as well as most other Scheme implementations to store small integers as immediate data. No pointer involved at all. Pointers may get into play at some particular number magnitude, but that is a general Scheme thing and has nothing whatsoever to do with vectors. -- David Kastrup
