|
|
| version 1.16, 2001/03/13 17:17:25 | version 1.18, 2001/03/27 16:35:52 |
|---|---|
| Line 21 VStateless_class *double_class; | Line 21 VStateless_class *double_class; |
| static void _int(Request& r, const String&, Array *) { | static void _int(Request& r, const String&, Array *) { |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VDouble *vdouble=static_cast<VDouble *>(r.self); | VDouble *vdouble=static_cast<VDouble *>(r.self); |
| Value& value=*new(pool) VInt(pool, (int)vdouble->get_double()); | Value& value=*new(pool) VInt(pool, (int)vdouble->as_double()); |
| r.write_no_lang(value); | r.write_no_lang(value); |
| } | } |
| static void _double(Request& r, const String&, Array *) { | static void _double(Request& r, const String&, Array *) { |
| Pool& pool=r.pool(); | Pool& pool=r.pool(); |
| VDouble *vdouble=static_cast<VDouble *>(r.self); | VDouble *vdouble=static_cast<VDouble *>(r.self); |
| Value& value=*new(pool) VDouble(pool, vdouble->get_double()); | Value& value=*new(pool) VDouble(pool, vdouble->as_double()); |
| r.write_no_lang(value); | r.write_no_lang(value); |
| } | } |
| Line 47 static void vdouble_op(Request& r, Array | Line 47 static void vdouble_op(Request& r, Array |
| r.process( | r.process( |
| *static_cast<Value *>(params->get(0)), | *static_cast<Value *>(params->get(0)), |
| 0/*no name*/, | 0/*no name*/, |
| false/*don't doubleercept string*/).get_double():1; | false/*don't intercept string*/).as_double():1/*used in inc/dec*/; |
| (*func)(*vdouble, param); | (*func)(*vdouble, param); |
| } | } |