Running "c:\tmp\mist.exe "
Assigned: FALSE
0.000 0.000 0.000
0.000 0.000 0.000
0.000 0.000 0.000
Assigned: TRUE
Is it legal to call a type helper to initialise a dynamic array ?Why not, if they're even allowed to have constructors: considerations for (simple) type helpers (https://www.freepascal.org/docs-html/ref/refse63.html).
Wow, I did not realize this. Very cool. So apparently I can rewrite code:A little upset: Parameterless constructors are not allowed in records or record/type helpers.
I am trying to figure out how to license, GPL or LGPL. Ideally I'd like to contribute to Lazarus/FPC.This would be ideal for compatibility with FPC/LAZ:
As an aside, I have a fairly large (~50,000 line) matrix library that I am trying to figure out how to license, GPL or LGPL.Depends on your goals of releasing the library. There are various licenses to suit any need.
Is it legal to call a type helper to initialise a dynamic array ? In this code, the helper "make" works as intended, although the array has not been set a length yet, and "assigned" returns false. With a Class, that would not be possible. It seems that for dynamic arrays "assigned" is just an alias for length=0, and helper methods can be used anytime.
I may release the common libraries as LGPL, but the programs as GPL. I probably overthink it.You are free to do whatever you want with your code, but if you release code as pure LGPL instead of FPC modified LGPL with linking exception (as mentioned above) - that would mean that your code licence will be viral to all code that uses your lib, so commercial use will probably be close to zero. If that is what you want - fine, but if not then FPC modified LGPL would allow linking to your lib without request to publish whole code - only changes to your lib.