beltex / SMCKit

Apple SMC library & tool
https://beltex.github.io/SMCKit
MIT License
473 stars 55 forks source link

Replace open() & close() with failable init() + deinit #10

Closed beltex closed 9 years ago

beltex commented 9 years ago
beltex commented 9 years ago

This no longer applies since SMC is now a struct, not a class. Even so, the general conclusion was that deinit() should not be relied on for such things. The Swift book seems to suggest it can nonetheless. If a new development comes along, we can look at this again. But it probably wouldn't be worth the performance trade-off anyway.