[Next] [Up] [Previous] [Contents]
Next: Explicit coercion operators Up: Vectors and vector operators Previous: Vector sets

Coercion of scalars to vectors

An integer expression is coerced to a vector expression whenever:

The length of the vector representation of an integer is 32 bits. The shorter of the two argument vectors is then padded with zeros before applying the opertion.

        [0,1,1] + 17
yields a 32 bit vector representation of the number 20.



Ken McMillan
Sat Jun 6 21:41:59 PDT 1998