Re: Can a generic class re-create itself with another type

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Jun 4, 5:25 pm, tadm...@xxxxxxxxx wrote:

<snip>

I have attacked this 10 different ways and haven't come up with
anything that works. That may be because it can't be done; has anyone
else attempted this successfully?

You can certainly create closed types (and then instances of them)
with reflection. Reflection with generic types isn't much fun, but
it's definitely doable. If you could provide a short but complete
program which attempts to *use* your SomeClass<T> (and verifies that
it behaves correctly) I'd be happy to have a go at implementing it.
(Unit tests would be even better than a short but complete program, of
course).

Jon
.



Relevant Pages

  • Re: A C++ Whishlist
    ... I think Introspection is determining info about an assembly/object at ... I think Reflection is the ability to create/use objects based on their ... making it part of a runtime execution environment (like .NET or Java ...
    (comp.lang.cpp)
  • Re: Plastic Light
    ... No, I talking about reflection. ... and matter (as well as matter-matter interactions). ... Scattering can be framed in terms of absorption and re-emission, but this is not always the most direct method of analysis, as the coherence properties of emitted and absorbed light need to be kept track of. ...
    (sci.physics)
  • Re: Plastic Light
    ... No, I talking about reflection. ... I think Raman scattering is related to light polarisation by the ...
    (sci.physics)
  • Re: Calibrating FFT results, amplitude in to magnitude out
    ... (snip, I wrote) ... reflection, usually of a thin layer on another material. ... indicence, and perpendicular to the plane of incidence, the result ... and then measuring the polarization of ...
    (comp.dsp)
  • Re: Everymans flying saucer
    ... Which could be a reflection from something on the ground or one of your metallic coated balloons. ... I don't trust any claims from your blog. ...
    (rec.aviation.military)