jpsdr
12th August 2016, 09:25
I've got a thought which cames to mind.
In compiler, there is an option called struct member alignment. I think, the header should provide information with the value used, or, defined what value must be used (mean, with what value avisynth was compiled).
I know, a lot wil just said "leave it on by default". Yeah, that's nice, but as far as i know (but i don't know everything...), there is no spec/standard which define a specific value for "default". What if one day a new compiler version decide to change his value of "default" ? I think the result will be that the new avisynth version compiled with it will not run any previous plugin, or a new plugin compiled with it will not run on avisynth.
I think, the value should be defined and fixed, and all avisynth stuff should be compiled with the compiler option set to this value, and not on "default". Of course, the value choose should be the actual one (personnaly, i've no idea what is the actual "default" value). This information should be provided and notified in the avisynth header.
Maybe there is also some other options like this, but this is the only one which came to mind.
I would like to see others point of view. Is this stupid ? Am i worried for nothing ? Of course, for now i don't think (otherwise i wouldn't have made this), but...
In compiler, there is an option called struct member alignment. I think, the header should provide information with the value used, or, defined what value must be used (mean, with what value avisynth was compiled).
I know, a lot wil just said "leave it on by default". Yeah, that's nice, but as far as i know (but i don't know everything...), there is no spec/standard which define a specific value for "default". What if one day a new compiler version decide to change his value of "default" ? I think the result will be that the new avisynth version compiled with it will not run any previous plugin, or a new plugin compiled with it will not run on avisynth.
I think, the value should be defined and fixed, and all avisynth stuff should be compiled with the compiler option set to this value, and not on "default". Of course, the value choose should be the actual one (personnaly, i've no idea what is the actual "default" value). This information should be provided and notified in the avisynth header.
Maybe there is also some other options like this, but this is the only one which came to mind.
I would like to see others point of view. Is this stupid ? Am i worried for nothing ? Of course, for now i don't think (otherwise i wouldn't have made this), but...