Do there exist anonymous objects, in the same way anonymous functions exist?

For example, I'd like to return a object "A", without going through the 
hoops of making an explicit type, which you can do (using my made up syntax)

function createMatrix()
  # create an anonymous object A
  A = anonymous type 
    *(A,b) = A*b
    \(A,b) = A\b
  end
  return A
end

A = createMatrix()
A*x
A\x

etc.

Gabe

Reply via email to