Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classfile support auto-generated clone #2177

Open
xushiwei opened this issue Mar 14, 2025 · 1 comment
Open

Classfile support auto-generated clone #2177

xushiwei opened this issue Mar 14, 2025 · 1 comment

Comments

@xushiwei
Copy link
Member

Proposal

Provide builtin clone mechanism to replace reflection

Background

goplus/yap#117

Workarounds

none

@xushiwei
Copy link
Member Author

auto-generated code includes:

func (this *Foo) Classfname() string {
    return "Foo"
}

func (this *Foo) Classclone() any {
    _gop_ret := *this
    return &_gop_ret
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant