git @ Cat's Eye Technologies SixtyPical / master eg / rudiments / errorful / vector.60p
master

Tree @master (Download .tar.gz)

vector.60p @masterraw · history · blame

// should fail analysis with a ConstantConstraintError
// because it cannot copy the address of `foo` into `vec`
// because it has incompatible constraints.

vector routine
  inputs y
  outputs y
  trashes z, n
  vec

define foo routine
  inputs x
  outputs x
  trashes z, n
{
  inc x
}

define main routine
  inputs foo
  outputs vec
  trashes a, z, n
{
    copy foo, vec
}