nx::configure(3nx)

πŸ“¦
version 2.4.0 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– nx::configure β€” the manual page, but make it a group chat πŸ’–

okay so bestie, welcome to nx::configure, a lil corner of the NX API where you get to peek at and poke at the config options of the NX object system. it's giving "settings app but make it C". no cap. πŸŽ€


✨ SYNOPSIS ✨

configure option ?arg?

🌸 DESCRIPTION 🌸

configure option ?arg?

so like, this command is the one that sets and retrieves options for the NX object system. simple. iconic. it's the vibe check for your object system's defaults. πŸ’…

here are the legal configuration options β€” and yes, only these, don't go inventing new ones, bestie, that's not the move πŸ™ˆ:

  • defaultMethodCallProtection β€” if you don't hand it an arg, it hands you back the currently active call-protection level that gets used as the default for newly defined method implementations (that's only when a method definition doesn't explicitly say its own, okurrr). but if you do pass an arg, this default call-protection level gets re-set to any of the available ones: public, private, protected. pick your fighter. πŸ₯Š
  • defaultAccessor β€” no arg? it returns the currently active call-protection level that's used as the default for newly defined properties (again, only if a property definition doesn't explicitly specify its own β€” mind the fine print, queen πŸ‘‘). pass an arg and this default call-protection level gets re-set to any of these values: public, private, protected, or none. and what's none mean? it means no accessors (like, the getter/setter methods, yk?) will be generated for newly defined properties β€” unless you explicitly ask for them. it's the "we're not doing that today" option. πŸ’€
lowkey important: those defaults only kick in when the thing being defined doesn't already state its own protection level. the explicit one always wins. periodt. ✨

Copyright (c) 2014-16 Stefan Sobernig <stefan.sobernig@wu.ac.at>, Gustaf Neumann <gustaf.neumann@wu.ac.at>; available under the Creative Commons Attribution 3.0 Austria license (CC BY 3.0 AT).


and that's the whole page, bestie πŸ¦‹ β€” configure, version 2.4.0, from the nx::configure(3nx) era, which honestly? iconic of it. mwah. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from