#568 Add a package option to have errors raised for NOVALUE situations.

5.0.0
pending
None
none
1
2015-06-12
2013-12-19
No

For complex package environments, it is not really feasible to use SIGNAL ON NOVALUE for error checking because the SIGNAL only sees labels local to an execution context. This would require adding signal handlers to every method, which would work against the desire to have small sized methods. In this sort of environment, the errors often show up in called methods when uninitialized variables as passed as arguments. It would be nice if the ::options instruction allowed the default NOVALUE action be to raise an immediate error when an uninitialized variable is used. This would be enabled at the package level, so any author can choose what behavior is desired. Another interesting enhancement might be to allow a novalue handling object be installed at the package level, but raising the error would be a handy first step.

Discussion

  • Rick McGuire

    Rick McGuire - 2014-09-24
    • status: unread --> accepted
    • assigned_to: Rick McGuire
    • Pending work items: none --> code+doc+test
    • Milestone: None --> 5.0.0
     
  • Rick McGuire

    Rick McGuire - 2014-09-25

    Code Committed revision [r10560].

     

    Related

    Commit: [r10560]

  • Rick McGuire

    Rick McGuire - 2014-09-25
    • Pending work items: code+doc+test --> doc+test
     
  • Rick McGuire

    Rick McGuire - 2014-10-13
    • Pending work items: doc+test --> doc
     
  • Erich

    Erich - 2015-06-12
    • status: accepted --> pending
    • Pending work items: doc --> none
     
  • Erich

    Erich - 2015-06-12

    ::OPTIONS NOVALUE ERROR/CONDITION documented in revision [r10915]

     

    Related

    Commit: [r10915]


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks