Re: [fpc-pascal] compile time init'ing records

2018-04-12 Thread Maciej Izak
2018-04-13 5:02 GMT+02:00 Ryan Joseph : > Why can’t we just do something simple like this? A simple meta programming > hack to dump the “default” section at the start of the scope the variable > is declared in so we don’t have to do this ourselves every time. It > probably breaks down for init’ing

[fpc-pascal] compile time init'ing records

2018-04-12 Thread Ryan Joseph
It’s a real pain setting default values for records in Pascal at compile time. Every other language seems to get this right but it’s a constant issue in Pascal. The new "class operator Initialize” feature goes a long way in helping this but it’s still a little annoying that the function is down

Re: [fpc-pascal] The unfortunate deprecation of GetTickCount

2018-04-12 Thread R0b0t1
On Thu, Apr 12, 2018 at 1:10 AM, Graeme Geldenhuys wrote: > On 2018-04-11 17:44, R0b0t1 wrote: >> This is related to something I meant to propose a while ago related to >> a cross platform timing and alarm API. > > That already exists in the form of EpikTimer > (https://github.com/graemeg/epiktime

Re: [fpc-pascal] The unfortunate deprecation of GetTickCount

2018-04-12 Thread Graeme Geldenhuys
On 2018-04-12 07:39, Michael Van Canneyt wrote: > Ah, finally ! > I was waiting for epiktimer to pop up in the discussion... > > Thank you, Graeme :-) Not sure if that was meant as sarcastic or not. I mentioned EpikTimer, because it rolls most use cases into one easy to use class. Plus EpikTimer a