On Tue, May 06, 2003 at 04:10:02PM +0200, Martin Nilsson (lambda) @ Pike (-) developers forum wrote:
argument, I think. Further, if B has no cast method, should some ``cast (or even create) in A be called? Example: (Gmp.mpz)5 would then result in Gmp.mpz(5).
Not a good idea, IMHO. We need two constructors, then - one usual (called like SomeType()) and one - specially for casting purposes. Say, _create()? It would simplify things a lot.
But definitely, construct like (SomeType)variable should work exactly like (int)variable :)
Regards, /Al