>From: "Alsop, Thomas R" <thomas.r.alsop@intel.com> >I am still not clear on one issue with the use of 'pure'. If I create a virtual method without the body in an abstract class, do I have to label it 'pure'? This is my understanding: If you don't use 'pure' or 'extern', it has to have a body, though that body can be empty. If you use 'pure', it cannot have a body. It is just a prototype, which ends at the semicolon at the end of the header. In other words, if you don't use 'pure' or 'extern', then the compiler will complain if there is no endtask/endfunction. If you use 'pure', the compiler will complain if there is an endtask/endfunction. If you use 'pure', it is an abstract method prototype. If you don't use 'pure' and have an empty body, then it is an implementation that happens not to do anything. Steven Sharp sharp@cadence.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Wed Apr 29 14:56:26 2009
This archive was generated by hypermail 2.1.8 : Wed Apr 29 2009 - 14:57:12 PDT