I don't think so. To be consistent, identifiers should only halt the script with an error if there's wrong syntax. In all other cases, it depends on what the identifier does and what's the kind of parameters entered. $calc(1/0) deals with numbers, so I can't see a problem with it returning 0 in this case.

What I don't like are identifiers like $calc(), $int() and $abs() that return 0 when not only numbers are entered. In this case, I think they should return $null, since there should be no place for anything other than numbers (and operators, in $calc()'s case). For example, $calc(a/0) should return $null, in my opinion.

Last edited by cold; 24/06/04 02:43 AM.

* cold edits his posts 24/7