|
|
| version 1.58, 2005/08/09 08:14:47 | version 1.59, 2005/08/26 11:12:45 |
|---|---|
| Line 36 DECLARE_CLASS_VAR(double, new MDouble, 0 | Line 36 DECLARE_CLASS_VAR(double, new MDouble, 0 |
| static void _int(Request& r, MethodParams& params) { | static void _int(Request& r, MethodParams& params) { |
| // just checking (default) syntax validity, never really using it here, just for string.int compatibility | // just checking (default) syntax validity, never really using it here, just for string.int compatibility |
| if(params.count()>0) | if(params.count()>0) |
| params.as_junction(0, "default must be int"); | params.as_int(0, "default must be int", r); |
| VDouble& vdouble=GET_SELF(r, VDouble); | VDouble& vdouble=GET_SELF(r, VDouble); |
| r.write_no_lang(*new VInt(vdouble.as_int())); | r.write_no_lang(*new VInt(vdouble.as_int())); |
| Line 45 static void _int(Request& r, MethodParam | Line 45 static void _int(Request& r, MethodParam |
| static void _double(Request& r, MethodParams& params) { | static void _double(Request& r, MethodParams& params) { |
| // just checking (default) syntax validity, never really using it here, just for string.doube compatibility | // just checking (default) syntax validity, never really using it here, just for string.doube compatibility |
| if(params.count()>0) | if(params.count()>0) |
| params.as_junction(0, "default must be double"); | params.as_double(0, "default must be double", r); |
| VDouble& vdouble=GET_SELF(r, VDouble); | VDouble& vdouble=GET_SELF(r, VDouble); |
| r.write_no_lang(*new VDouble(vdouble.as_double())); | r.write_no_lang(*new VDouble(vdouble.as_double())); |