Re: [fpc-pascal] TParamFlags and fpc 3.2.0.
>. I think it /should/ work however if you add a "{$if > FPC_FULLVERSION >= 030300} Oops, sorry, you writed it already: if > FPC_FULLVERSION >= 030300 OK thanks. Huh, and for: > if FPC_FULLVERSION >= 030200 (not sure of the number) >then use pfHidden flag. Is 030200 the right number? Thanks. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TParamFlags and fpc 3.2.0.
> Well, nicer would be if you'd do it inside the main for-loop. Yes, I 100 % agree with that but... After *lot of* try and *lot of* headaches I give up. I perfectly understood (I think) your code with filter inside the loop, it should work but the result is not ok. There s a strange $self first parameter added in the params-array. I do not understand why. That said, the procedure is used to parse code via the mse designer, using only methods of msegui widgets. So speed is not really important. And I doubt that doing the filter after the loop will take lot of more time and resource that doing inside. > What do you mean? What number FPC_FULLVERSION will be used for the new feature of TParamsFlag? For example, if FPC_FULLVERSION >= 030100 then tparamsflag uses wordset (otherwise byteset). if FPC_FULLVERSION >= 030200 (not sure of the number) then use pfHidden flag. if FPC_FULLVERSION >= ?? then use new feature you are talking. Thanks. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TParamFlags and fpc 3.2.0.
Am 28.07.2019 um 16:02 schrieb fredvs: It's not beautiful if you mean that, but it will work... OK, I will make it nicer. Well, nicer would be if you'd do it inside the main for-loop. Oh and just in case you want more headaches... Yes, please, I adore it. By the way, about headache, may I ask what number of FPC_FULLVERSION will be used for that wonderful new feature? What do you mean? If you mean the AlignTParamFlags then I already showed that? Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TParamFlags and fpc 3.2.0.
> It's not beautiful if you mean that, but it will work... OK, I will make it nicer. > Oh and just in case you want more headaches... Yes, please, I adore it. By the way, about headache, may I ask what number of FPC_FULLVERSION will be used for that wonderful new feature? OK, nice fight and we win twice: First, now fpc has a wonderful full working, clear TParamFlags demo. And mse is still on the road. Thanks Sven. Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TParamFlags and fpc 3.2.0.
Am 28.07.2019 um 15:10 schrieb fredvs: I'm no fan of those nested with-blocks Same for me. Did you see my fixes, do you agree with it ? It's not beautiful if you mean that, but it will work... Oh and just in case you want more headaches: the current code will bomb on current FPC trunk on targets that have strict alignment requirements (e.g. ARM). I think it /should/ work however if you add a "{$if FPC_FULLVERSION >= 030300}po1 := AlignTParamFlags(po1);{$endif}" directly before the assignment to "flags". Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TParamFlags and fpc 3.2.0.
> I'm no fan of those nested with-blocks Same for me. Did you see my fixes, do you agree with it ? Fre;D - Many thanks ;-) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TParamFlags and fpc 3.2.0.
Am 28.07.2019 um 03:02 schrieb fredvs: PS: If you know what makes the problems in your code, I am very curious to know what is the solution. I'm no fan of those nested with-blocks so I definitely won't try to fix that code. Regrds, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal