Call-site explanation?

后端 未结 2 953
别跟我提以往
别跟我提以往 2021-01-31 20:35

scaning the internet , im having trouble understanding in a simple manner - the term call-site (@dlr). ive been reading here that CallSite is :

one site says

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-31 20:54

    The first explanation has nothing to do with the dlr or the dynamic type: simply speaking, a call site is a location (or site) in the source code where a method is called.

    In implementing the dynamic type, it is necessary to store information about the dynamic method calls contained in your code, so they can be invoked at runtime (the dlr needs to look up the method, resolve overloads, etc.). It seems natural that the object representing this information should also be called a ”call site”.

提交回复
热议问题