[Gambas-user] subtyping (coercing) heirarchical objects

Bruce bbruen at ...2308...
Tue Oct 16 12:44:19 CEST 2012


Given a collection "c" of objects of type "x" and an inheritance
hierarchy where "x1" and "x2" are subtypes of "x", is there an easy way
to cast c[id] to the proper subtype ( i.e ":x1" or ":x2") when some
occurrence allows a logical discernment between the subtypes?

Bruce






More information about the User mailing list