回忆一下,传递数组或函数类型实参的时候,该实参自动转换为一个指针。
Recall that when we pass an argument of array or function type, that argument is automatically converted to an pointer.
第二个切点, employeeFinanceUpdates, 描述了所有以 update开头, 以 Info, 结尾的,具有一个Employee类型实参的方法的调用点。
The second pointcut, employeeFinanceUpdates, describes all join points where there is a call to any method that begins with update, ends with Info, and has one argument of type Employee.
在编写扩展函数时,应谨慎处理根据实参类型进行的方法重载。
Be cautious about method overloading based on argument type when you write extension functions.
应用推荐