POV-Ray : Newsgroups : povray.off-topic : Generics annoyance : Re: Generics annoyance Server Time
4 Sep 2024 13:18:37 EDT (-0400)
  Re: Generics annoyance  
From: Darren New
Date: 14 Apr 2010 16:35:11
Message: <4bc626ff$1@news.povray.org>
Warp wrote:
>   It's useful mostly if you have some way of casting back to the original
> type.

Exactly. In languages where everything comes from Object, they're usually 
either dynamically typed or they have the equivalent of dynamic_cast<>. 
Otherwise, it wouldn't really be useful.  Handy when you want to do 
something like "Print this array of objects with that string as the format 
specifier" a la printf.

-- 
Darren New, San Diego CA, USA (PST)
   Yes, we're traveling together,
   but to different destinations.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.