>From: "Rich, Dave" <Dave_Rich@mentor.com> >Hold on there. SV does not have static classes. The implicit "this" >argument to a method of a class is just a handle to a dynamic object. >Making "this" a const just prevents you from modifying the handle; you >can still write to class properties. Which is pretty useless, since as far as I can tell, you cannot modify "this" anyway. It seems that SV only allows declaring a handle itself as const (the equivalent of "* const handle" in C), but not a handle that treats the class object as const (the equivalent of "const *handle" in C). It seems to me that this more general issue of being able to declare such a "handle to const" should be addressed first, before the special case of a const method whose "this" is such a "handle to const". 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 2 12:56:00 2008
This archive was generated by hypermail 2.1.8 : Wed Apr 02 2008 - 12:56:16 PDT