A
Alfred
On Ubuntu, I've been experimenting with Kazuho Oku's fascinating Linux-
based perl/C trick to implement C and C++ as a scripting language...
http://labs.cybozu.co.jp/blog/kazuhoatwork/my_projects/c/C
http://labs.cybozu.co.jp/blog/kazuho/archives/c/C-0.05-1.i386.rpm
The question I have for any Linux C++ programmer out there is, if I
implement a Variant class data type, and use that for all my variables
(because it's meant for short scripts), then is there also a GCC
option or trick in C++ where all undeclared variables are assumed to
be this Variant data type?
(For a scripting language, I find the declarations of data types to be
tedious. However, when using C and C++ as a full-blown, compiled
language for doing big things like serious stuff, then yeah, I'm aware
that the variant and undeclared variable things are not a really good
idea. I'm just looking for something here for an incredibly fast
scripting language. Oku's technique can help one write a script that
is 100x faster than Perl on the Fibonacci test.)
based perl/C trick to implement C and C++ as a scripting language...
http://labs.cybozu.co.jp/blog/kazuhoatwork/my_projects/c/C
http://labs.cybozu.co.jp/blog/kazuho/archives/c/C-0.05-1.i386.rpm
The question I have for any Linux C++ programmer out there is, if I
implement a Variant class data type, and use that for all my variables
(because it's meant for short scripts), then is there also a GCC
option or trick in C++ where all undeclared variables are assumed to
be this Variant data type?
(For a scripting language, I find the declarations of data types to be
tedious. However, when using C and C++ as a full-blown, compiled
language for doing big things like serious stuff, then yeah, I'm aware
that the variant and undeclared variable things are not a really good
idea. I'm just looking for something here for an incredibly fast
scripting language. Oku's technique can help one write a script that
is 100x faster than Perl on the Fibonacci test.)