Hello Folks!
Prof Abimbola Olowofoyeku wrote:
object is class
returns True if object is an instance of the class denoted by class or one of its descendants, and False otherwise.
That's exactly what I need. According to Frank, there's already a plan to put it into GPC, so I'll wait and see...
Alternatively, I could need a mechanism to absorb the runtime error fired by "as" before it interrupts the program.
In Delphi, from what the help file says, the program should not compile if the typecasting is wrong. GPC could do the same.
??? How should the compiler know? I mean, the object type of a pointer at runtime is a matter of runtime.
Yours
Markus