2 scalar.hh -- declare Scalar
4 source file of the Flower Library
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
16 /// Perl -like scalar type.
17 struct Scalar : public String {
19 Scalar (Real r) : String (r) {}
20 Scalar (int i) : String (i) {}
21 Scalar (char c) : String (c) {}
22 Scalar (char const *c) : String (c) {}
23 Scalar (String s):String (s) {}
30 bool to_bool () const;
32 /** perl -like string to bool conversion.
34 operator bool() const;