Neil 0 Posted July 24, 2008 Report Share Posted July 24, 2008 Hi All I think I have found a problem using the floating point lib with member c++ member variables. The complier will not let you void mycalss::func() { float localvar = var; } where var is float myclass::_var; A public member that is a float Is this a bug? Neil Quote Link to post Share on other sites
Dave 0 Posted July 24, 2008 Report Share Posted July 24, 2008 Neil, Is this a bug?Looks like it is a compiler bug Regards Dave Quote Link to post Share on other sites
Neil 0 Posted July 25, 2008 Author Report Share Posted July 25, 2008 Hi Dave Thanks. Im sure you will fix it. I have noticed some other limitations of the compiler as a C++ complier. Are these on a todo list? You cant use operator type functions, e.g. operator[] You cant return a reference from a member function int& foo() You don't seem to be able to define a copy constructor foo::foo(const foo& that) You can not do int foo(0), you have to do int foo = 0; which is not the same. It also seems that if you create an object that is bigger than 256 bytes it does not fit into memory even if the individual member variables are all smaller than 256 bytes I dont want to pick faults, as Ive said before, I think your product is good. After all I am using it to develop a product and I have paid for a license!! Best regards Neil PS any chance that the float lib will have a proper C++ interface so you can do float foo = bar + poo rather than the convoluted C function calles? Quote Link to post Share on other sites
Pavel 0 Posted September 2, 2008 Report Share Posted September 2, 2008 ...The complier will not let you void mycalss::func() { float localvar = var; } where var is float myclass::_var; A public member that is a float... This problem has been fixed and fix will available in the next release. Regards, Pavel Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.