Ticket #1014 (closed feature: wontfix)
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
Note: See
TracTickets for help on using
tickets.