Hacker News new | ask | show | jobs
by erik_seaberg 997 days ago
Is there a way to declare any type uncopyable? This is something I always thought Ada got right.
1 comments

you stick this in your struct

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