[fpc-pascal] ppcjvm issues
XHajT03 at hajny.biz
Sat Jan 7 12:06:52 CET 2017
On Sat, January 7, 2017 03:12, Jon Foster wrote:
You didn't mention that you weren't subscribed to the list, but since this
seemed to be the case, I included your address in Cc:.
> The second issue I ran into:
> function f(x, y: integer): float;
> When attempting to compile this it tells me that "float" is undefined. I
> think I'm missing something here. "float" is the native Java name for
> base floating point type and its a valid type for FPC. If I use "single"
> instead it will compile. Seems odd.
I can't comment the first part, but where exactly is a type named "float"
defined in FPC (which unit)? E.g. single is defined in unit System and
thus available for all FPC programs automatically. If some unit defines
"float" (not sure about that, but it might be the case). I can see the
System unit for Java defining "jfloat" as an alias to single - maybe you
meant that one?
Hope this helps
More information about the fpc-pascal