At 01:02 PM 12/3/99 -0500, "Todd L. Miller" <[EMAIL PROTECTED]> wrote:
>       John Morrison has performed analyses on the code generated by gcc
>that indicate to me that this, in fact, is what gcc is doing for us
>automagically.

I was trying to emphasize the typedef for these kind of methods. gcc
doesn't automatically make sure that all the methods have the same type; it
makes sure they have a type indicated on each line in the frame class
definition.

typedef bool (frame::*TOpcodeMethod)(exception_to_throw &e);

When all opcode methods are declare in the frame class definition with this
type, gcc makes sure that all methods have exactly the same type. Every
opcode method should have the same type. If (or when) the type of opcode
methods needs to be changed, the type is enforce-able by the compiler with
a typedef.


_______________________________________________
Kernel maillist  -  [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel

Reply via email to