You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeSpritestruct {
// ...
}
// any T who have embedded Sprite member will implement Clone method automaticallyfunc [TSprite] (p*T) Clone() *T {
// ...
}
The text was updated successfully, but these errors were encountered:
In normal way to implement a
clone
method:Suppose we have template member method:
The text was updated successfully, but these errors were encountered: