Ticket #1014 (closed feature: wontfix)

Opened 5 years ago

Last modified 4 years ago

NQP: Add defined(), exists(), undef.

Reported by: Austin_Hastings Owned by: pmichaud
Priority: normal Milestone:
Component: PCT Version: 1.6.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

Testing using code like

   if $foo ...

works until your class doesn't have a get_boolean, or until you are trying to see "if $foo is set" rather than "if $foo is true".

Then you need defined, or some kind of ==undef or !=undef test.

Change History

Changed 5 years ago by pmichaud@…

Note that any functions such as defined(), undef(), etc. probably
ought to be part of a library (to be explicitly imported) rather
than built-in as defaults to NQP.

Pm

Changed 4 years ago by jimmy

  • status changed from new to closed
  • resolution set to wontfix

Please use NQP-rx.

Note: See TracTickets for help on using tickets.