AceDB ignores falsy wildcard ("*" and "**") defaults #648


  • Defect
Open
  • Anonomit created this issue Nov 24, 2023

    Setting ["*"] = false in an options table currently does nothing, since the option will still appear to be nil when accessed. This appears to be a simple oversight, since AceDB does attempt to compare v~=nil, however the short circuit evaluation does not work as intended when v==false.

    I've submitted a PR on the repo a few weeks ago to address this.

    This change makes it easier to notice incorrect db references, since a return value of nil will only happen when a default value has actually not been set.

  • Anonomit added a tag Defect Nov 24, 2023
  • Anonomit edited description Nov 24, 2023

To post a comment, please login or register a new account.