Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there a way to declare any type uncopyable? This is something I always thought Ada got right.


you stick this in your struct

    type noCopy struct{}
    func (*noCopy) Lock()   {}
    func (*noCopy) Unlock() {}




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: