How would this function look like using newobject method?

32 posts / 0 new
Last post
trixie
trixie's picture
Offline
Last seen: 3 months 1 week ago
Joined: 2011-02-03 13:58
@salass Since only one
@salass
Since only one attribute is being queried it would be simpler to just use GetAttr()
He may want to change the call to request more attributes at some point of development (happens to me all the time), so using GetAttrs() is more "future-proof". As GetAttr() has a different order of parameters, and as it has no counterpart in "SetAttr()", I stopped using GetAttr() completely because all it does is add unnecessary confusion to code.
AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2

Pages

Log in or register to post comments