[fpc-pascal] Constants in generics

2017-04-08 Thread Ryan Joseph
I wanted to make a record generic that would serve as wrapper for an array allocated on the stack. Is there anyway to make constants work in generics? The generic type compiles but the specialization fails. type generic TFixedList = record type FData

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-08 Thread Florian Klämpfl
Am 07.04.2017 um 16:15 schrieb Marco van de Voort: > In our previous episode, African Wild Dog said: >> Which integer types have their size dependent on platform? >> E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. > > In Delphi they retroactively equated longint to C long, bei

[fpc-pascal] fpc code for Java class and Android.

2017-04-08 Thread fredvs
Hello. Here a easy way to translate all your fpc applications into Java applications (class). The trick is to convert your fpc applications into native java libraries. It works for fpc console, fpGUI and MSEgui code on Android OS too. Here we go: 1) In your main application change this: program