I just noticed this really nice compiler feature. I don't know when it as
added but it's really helpful.
When defining const array like below the compiler will tell you how many
elements are missing:
const
Food: array[0..7] of string = (
'Apple', 'Banana', 'Cherry', 'Doughnut', 'Eclair');
Good point, Jeppe, what do you think on compiling rtl on arm-embedded
with -O1 ?
Michael
(Glad to hear that basic functionality works...)
By the way, I have done a patch for Lazarus so that debugging with
ST-Link/JLink/Texane works, send me an e-mail when you want to test this.
Michael
Am
Michael Ring wrote:
By the way, with fpc trunc compiler you can target your board directly:
ppcrossarm -WpDISCOVERYF407VG (see ppcrossarm -i for other Discovery
boards)
You should also refrain from using optimizations > -O1 as there are some
issues with the compiler that make your compiled
On 2016-02-12 02:17, Dennis wrote:
> Is there any sample codes to copy published properties (via RTTI) ?
> e.g. psuedo code below
Take a look at tiOPF's TtiObject.AssignPublishedProps() method.
https://sourceforge.net/p/tiopf/code/ci/tiopf2/tree/Core/tiObject.pas#l1156
The tiRTTI.pas unit also