Oh, I feel very chaotic, how is it everywhere?

xiaoxiao2021-03-06  64

Like the method defined in the same type of constructor and designer, use the same call rule, but the constructor and the destructor have an additional delivery of a Boolean parameter (huh, strange, the compiler as the creation of the class Point, view cpu, huh, see DL is not), used to represent contextual relationships of constructors or sectors. If the constructor reads this value, the FALSE indicates that the constructor is called by an instance object or using the inherited keyword. In this case, the constructor is like an ordinary method. If true is called by class reference. In this case, the constructor creates an instance of a class is also Self, returns a reference to a newly created object in Eax. Tonguan artifact. . . If it is true, the destructor is returned to the memory of the instance Self memory. Oh, why use the DL register that we say above, because the register call rule. If it is a Pascal rule, then press the stack before all other parameters. If you are CDECL, StdCall, SaFECALL rules, then press the stack after the Self parameter. (PUSH DL) Because the DL register represents whether the constructor or destructor is the outermost layer in the call stack, it must be restored before exiting the DL, so the BeforDestruction or AfterConstructionTRUction can be securely called.

转载请注明原文地址:https://www.9cbs.com/read-85457.html

New Post(0)