> Jonas Maebe wrote: >> >> On 13 feb 2004, at 22:17, Michalis Kamburelis wrote: >> >>> but sometimes it's a pain trying to write code in ObjFpc mode that >>> should compile under Delphi too >> >> >> In that case, why do you want to use that single(1.0) construct? That >> won't compile in Delphi either... I'm not sure what you are trying to >> achieve: writing code that "mostly" compiles under Delphi too? What's >> the use? >> >> >> Jonas >> > I don't *want* to use p(Single(1.0)) construct in that sense that I > would be happy with using just p(1.0), too. My point was that in FPC in > Delphi mode I can't use p(1.0) and I can't use p(Single(1.0)) too.
Add a new overload for extended and it compiles also in delphi mode. Bug report 2129 is the source that single(1.0) typecasts does not work as expected. A solution can be to do conversion for float constants. _______________________________________________ fpc-devel maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-devel
