Home > other >  Why system inside the package method can refer to each other? 20 points are on, ask bosses to answer
Why system inside the package method can refer to each other? 20 points are on, ask bosses to answer

Time:03-30

There is a method in reflect bag
//resolveNameOff resolves a name offset from a base pointer.
//The Rtype (*). NameOff method is a convenience wrapper for this function.
//Implemented in the runtime package.
Func resolveNameOff (ptrInModule unsafe. The Pointer, off int32) unsafe. The Pointer

Here only the statement did not realize, comments on implementation at runtime, don't understand the problem is that the two different package also does not have the import, why reflect internal can reference in the runtime methods?

If I also want to quote, error display: not the body of the function realization, and this problem is to ask, package to the system internal language is how to deal with it? Will there be special treatment?
Only 20 points are on, please answer
  • Related