I have found a bug where: x.size size(x)
does not work, but this: C_hack::cast[size](x) does. This bug results in this: build/release/tools/flx_cp.cpp:1389: warning: comparison between signed and unsigned integer expressions It appears the constructor forms are changing the type, since the result of: fun f(x:size) .. f (1.size) is not giving a type error (in Felix). The generated C++ usually works too, because of integral promotions. It's just not clear why this is failing. In general these conversions DO work. For example: //// ctor int: string = "$1.length()"; println$ "hello".int; //// works just fine. This works too: /// typedef INT = int; ctor INT: string = "$1.length()"; println$ "hello".INT; /// ////////////////////////////////////////////////////////////// BTW: I have a very nasty installation bug: after installing "flx" it fails silently, trying to rebuild lib/std.libtab. This fails for unknown reason, probably due to lack of permission to write the file. The question is: why is it trying to rebuild it? It is copied by flx_cp with time stamps intact. However sudo flx dummy rm dummy* fixes it (i.e. just run a dummy program to build std.libtab with root permissions). After that all is OK: so either flx_cp is not copying time stamps properly, or the dependency checking is not working properly. I looked with ls -lasptT but this doesn't help. The problem MIGHT be that OSX only has low resolution time stamps. It also might be because I'm rebuilding SOME components (such as flxg, the compiler) without rebuilding the library: the build system doesn't check this, but the compiler itself does. This problem did NOT occur whilst the install procedure used "cp" rather than "flx_cp". -- john skaller skal...@users.sourceforge.net ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language