Bug 2950 - Confusing error when calling functions in 0.
: Confusing error when calling functions in 0.
Status: RESOLVED FIXED
: Pike
Core
: 7.5
: All Other
: P3 (normal) minor
: ---
Assigned To:
:
:
:
  Show dependency treegraph
 
Reported: 2002-04-03 14:55 CET by
Modified: 2002-04-25 10:48 CET (History)
Scrum Prio:
In scrum?: ---
Story included in sprints:
Unplanned in sprints:


Attachments


Description From 2002-04-03 14:55:34 CET
Pike v7.3 release 18 running Hilfe v3.2 (Incremental Pike Frontend)
> object o = 0;
> o->create ("bar");
invalid digits, cannot convert to mpz
Unknown program: create("bar")
HilfeInput:1: ___HilfeWrapper()

Since it's a common error that zero is dereferenced, it should be a more
obvious error here. In the specific case of the create method, a solution
is probably to make it static, which it ought to be anyway, but the problem
applies to other Gmp.bignum methods as well.
------- Comment #1 From 2002-04-25 10:49:15 CET -------
Fixed in Pike 7.3 by making all the Gmp,mpx/Gmp.bignum LFUNs static.

Note

You need to log in before you can comment on or make changes to this bug.