and it gives these warnings
tester_2023.pas(74,6) Note: Call to subroutine "operator :=(const source:ShortString):Variant;" marked as inline is not inlined
tester_2023.pas(76,38) Note: Call to subroutine "operator :=(const source:OleVariant):AnsiString;" marked as inline is not inlined
tester_2023.pas(77,28) Note: Call to subroutine "operator :=(const source:Variant):AnsiString;" marked as inline is not inlined
what do these warnings about inline mean?
These are not
warnings, these are
notes as is mentioned after the position of the message.
I don't know why operators are not inlined.
There are various reasons when the compiler decides not to inline a function. In this case the issue is that the function uses a variable that is private to the
Variants unit and is thus not accessible from outside. The trunk compiler has the ability to support this nevertheless on most platforms (e.g. Windows, macOS and the ELF-based ones) and thus this specific note won't appear anymore.
You can select multiple messages by left mouse click + Ctrl or Shift. Then right click -> Copy -> Copy selected messages to clipboard.
Thanks for the info, unfortunately I’m using a laptop with trackpad. I’m not sure how to make that wo even trying what would usually be considered a right clicks while holding control and/or shift key
I don't see what a trackpad has to do with that. I'm on a tablet with a trackpad as well and have no issue doing multi selection.
I was chatting with someone recently who told me that pascal has variants so that it can utilize code from c libraries. Suffice it to say that I was not thrilled to find out about dependencies on c
How do you think FPC interacts with the operating system? Magic?
If this someone meant the
Variant type then as I said that was introduced to interact with COM libraries. If they meant variant records then these exist to simplify various coding usecases and not only to interact with C code (though they definitely help there as well).