[fpc-devel] Breaking change in FPC 2.6.1
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Wed May 2 10:47:08 CEST 2012
On Wed, 2 May 2012, Martin Schreiber wrote:
> On 01.05.2012 17:37, Michael Van Canneyt wrote:
>>> As written before, in MSEgui I'll define a "bookmarkty" type, so
>>> MSEgui users
>>> have "bookmarkty" in order to avoid the warning. FPC and Lazarus
>>> probably
>>> can't do the same because of Delphi compatibility. Suggestion:
>>> remove "deprecated" from TBookmarkStr in fixes_2_6.
>>
>>
>> Well, I think it is better to warn people of a coming change.
>>
>> So I have added a description that warns people that it will disappear
>> in 2.6.3.
>>
> For users who do not want to see the "deprecated" warnings in fixes_2_6 do
>
> In MSEide+MSEgui:
>
> Use "bookmarkty" instead of "TBookmarkStr" for bookmark variables.
>
> In Lazarus:
>
> Use "string" instead of "TBookmarkStr" for bookmark variables.
This last one is bad advice, this code will break as soon as they switch
to 2.6.3. Which, presumably, eventually they will.
If you really want to avoid the messages, it is better to use
TBookmark, GetBookmarkData and FreeBookmark.
That will not generate warnings and will continue to work with 2.6.3.
Or you can simply ignore the warnings, which is by far the easiest option.
I can't believe people are making such fuss over a couple of warnings.
Michael.
More information about the fpc-devel
mailing list