> type Set_Of_tabulatorkindty= set of tabulatorkindty;
Yes, it was proposed too.
It has the advantage to fix the tabulatorkindty(-1) bug without adding a new
item-enum.
But the disadvantage is: lot of change in code, maybe more than simply
adding "tak_nil" at end of the enum-array.
And initiali
El 11/03/2020 a las 16:37, wkitt...@windstream.net escribió:
On 3/11/20 11:35 AM, fredvs via fpc-pascal wrote:
f (kind in tabulatorkindty) then
Yes, I like it!
But, sadly, the compiler no.
"Error: Operator is not overloaded"...
that's weird... i thought that construct was standard for arr
> ---> kind := tabulatorkindty(-1);
> makes no sense.
Yes of course, it is the reason of that topic.
fpc 3.0.4 does not give any warning for this (strange...).
And it is fpc 3.2.0 that reveals that bug, giving a warning for that.
Note that fpc 3.2.0 is still tolerant, with a strict compiler, the
El 13/03/2020 a las 15:49, fredvs via fpc-pascal escribió:
Hello Santiago.
What do you think?
IMHO
---> kind := tabulatorkindty(-1);
makes no sense.
Why should you initialize a variable on purpose to an out-of-range value?
If you need a sentinel value, or a non valid value, create one, like
Hello Santiago.
> I supposse you are reading from a format that stores
> tabulatorkindty value as an integer
No, imho it was a bug, tabulatorkindty is a enumeration array and using
integer instead of a enum is not ok.
> if (intValue>=ord(Low(tabulatorkindty))) and
> (intValue<=ord(high(tabulato
Hi,
I want to announce Apache module I develop. It allows pascal program to be
executed as scripting language using InstantFPC.
It is still early stage but it is already capable of executing simple pascal
programs. In case anyone interested, here is repository
https://github.com/zamronypj/mod_pas
El 11/03/2020 a las 11:15, fredvs via fpc-pascal escribió:
---> tabulatorkindty = (tak_left,tak_right,tak_centered,tak_decimal,tak_none);
?
And then use:
---> if (kind <> tabulatorkindty(tak_none) ?
Or do you have a other idea?
Yes, for my taste that is the way to go.
But you don't need t