tag:blogger.com,1999:blog-6977069.post114286483879519457..comments2022-10-27T11:40:01.409+02:00Comments on Hallvard's Blog: Virtual methods and inheritedHallvards New Bloghttp://www.blogger.com/profile/09527199955524812466noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6977069.post-58942455524885483862021-07-12T18:08:28.403+02:002021-07-12T18:08:28.403+02:00I agree with xorinI agree with xorinGuruhttps://www.blogger.com/profile/03892743885714024602noreply@blogger.comtag:blogger.com,1999:blog-6977069.post-47809190644128975952013-09-25T17:55:15.558+02:002013-09-25T17:55:15.558+02:00In fact, there's a big problem with this type ...In fact, there's a big problem with this type of inheritance. There's no difference between deliberately not calling the inherited method and FORGETTING to call it.<br /><br />It could be easily solved by adding another keyword, like "ignore inherited". Then compiler would know you didn't forget to call the inherited method, but you deliberately choose not to call it.<br /><Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6977069.post-30889195539730826112013-08-19T11:05:55.807+02:002013-08-19T11:05:55.807+02:00just what i was looking for. thank man :Djust what i was looking for. thank man :Dxorinhttps://www.blogger.com/profile/13986400976172499900noreply@blogger.comtag:blogger.com,1999:blog-6977069.post-1143001783310470432006-03-22T05:29:00.000+01:002006-03-22T05:29:00.000+01:00I agree with Hallvard. I use out parameters, and i...I agree with Hallvard. I use out parameters, and in fact var parameters, which most people are aware of, carry the same risk.<BR/><BR/>An out parameter is simply a var parameter that you don't expect to have a value when its routine is called. The routine is expected to supply a value.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6977069.post-1142944239059264122006-03-21T13:30:00.000+01:002006-03-21T13:30:00.000+01:00Code which uses out parameters are very rare, even...Code which uses <B>out</B> parameters are very rare, even in VCL. At least, in my experience I never seem people using that type of parameter. Most doesn't ever know that keywork exists.<BR/><BR/>If the compiler ever breaks some code, it would be very little.Anonymousnoreply@blogger.com