Re: Cool! A Variant in Delphi.NET is just a TObject!



Joanna Carter [TeamB] wrote:

Hmmm, sounds like generics to me ;-)

Not a bit. The whole point of generics is to get rid of the need for
casting, and untyped params are all about casting.

--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Please read and follow Borland's rules for the user of their
server: http://support.borland.com/entry.jspa?externalID=293
.



Relevant Pages

  • Re: .NET anger.
    ... | pure WIN32 or .NET. ... Boxing maybe, but surely casting has 0 overhead? ... but these aren't generally anything to do with generics) ...
    (borland.public.delphi.non-technical)
  • Re: Grid made using Arrays of ArrayLists
    ... type information of the elements is kept in the former. ... With generics that advantage disappears. ... Taken an instance at a time, casting might make sense. ...
    (comp.lang.java.programmer)
  • Re: Generics question
    ... String key = e.getKey; ... all the unnecessary casting. ... the generics /avoid/ casting. ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (comp.lang.java.programmer)
  • [PATCH] kmemtrace: gfp_t is an unsigned int, not an unsigned long
    ... gets rid of all the sparse warnings as you are casting a ... restricted type without __force. ...
    (Linux-Kernel)
  • Re: GH casting news (spoiler)
    ... What's going at GH that makes them think all this new "stunt" casting is ... Are the ratings dropping? ... Can anyone tell me why they got rid of Rick Hearst? ... I'm not sure if they got rid of Hearst or if he left for greener pastures. ...
    (rec.arts.tv.soaps.abc)