Bug 1793 - gauge(...); does not work
: gauge(...); does not work
Status: RESOLVED FIXED
: Pike
Core
: 7.2
: All Other
: P3 (normal) normal
: ---
Assigned To:
:
:
:
  Show dependency treegraph
 
Reported: 2001-06-23 03:32 CET by
Modified: 2001-06-25 14:03 CET (History)
Scrum Prio:
In scrum?: ---
Story included in sprints:
Unplanned in sprints:


Attachments


Description From 2001-06-23 03:32:01 CET
This program:

int main()
{
  string foo;
  gauge(foo="");
}

gives the following error:

test.pike:4:Bad argument 2 to `-.
test.pike:4:Expected: !function(!(object | mixed) ... : mixed) & function |
function(int, int ... : int) | !function(!float ... : mixed) & function(int |
float, int | float ... : float) | function(array((0=mixed)), array ... :
array(0)) | function(mapping((1=mixed):(2=mixed)), mapping | array | multiset
... : mapping(1:2)) | function(multiset((3=mixed)), multiset : multiset(3)) |
function(string, string ... : string)
test.pike:4:Got     : function(int, string, int : void | mixed)
Pike: Failed to compile script:
Compilation failed.
------- Comment #1 From 2001-06-25 14:04:44 CET -------
Fixed in Pike 7.3, 7.2 & 7.0.

Note

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