Cast Object - get null

Jonathan M Davis jmdavisProg at gmx.com
Thu Apr 19 14:23:42 PDT 2012


On Thursday, April 19, 2012 23:06:58 Jakob Ovrum wrote:
> T opCast(T : const(Vector2D!U), U)() const
> {
> return new T(x, y);
> }

Cool. That's definitely better. I definitely need to improve my template-foo 
with regards to :.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list