[progress Communities] [progress Openedge Abl] Forum Post: Re: Cast Vs Dynamic-cast

Status
Not open for further replies.
L

Lieven De Foor

Guest
My gripe is that the compiler shouldn't catch this here, it should only get caught at run-time. Mike's example will always compile, yet not always work at run-time, and that's how I would expect CAST to work. You should always be able to do the CAST with a type instead of needing a DYNAMIC-CAST with type name string like in this case.

Continue reading...
 
Status
Not open for further replies.
Top