[fpc-devel] THandle and 64bit platforms

Marc Weustink marc at dommelstein.net
Tue Dec 21 00:26:57 CET 2004


At 00:15 21-12-2004, Michael.VanCanneyt at Wisa.be wrote:

>On Tue, 21 Dec 2004, Marc Weustink wrote:
>
> > >This will take some work :-)
> >
> > For adapting Lazarus I've no problems with it. For ppl wanting to port 
> apps
> > I see more problems. Especially when a shorter version of it exists.
> > Besides I don't know what other Lazarus devels think
>
>People who want to write portable apps should definitely not make any
>assumptions about Thandle. Since TLCLhandle=Handle on windows, this
>should not really be a problem ?

Except that they may have used it.

> > >That said, the RTL should also avoid confusion with the Windows/Delphi
> > >THandle type, and introduce a cross-platform and opaque TFileHandle type.
> > >Which will happen to be equal to THandle on 32-bit windows.
> > >On 32-bit Linux, the definition of THandle will then also equal 
> TFileHandle.
> > >
> > >This will also take some work :-)
> > >
> > >The 2.000.000.000 EUR question is then, who will do this work? ;-)
> >
> > I did some counting:
> >
> > Rtl: 489 times (excluding win32, including os2, including comments)
> > Lazarus: 105 times (exluding win32 and docs)
> >
> > Hmm.....  I can give you an answer :)
>
>But I cannot give you 2.000.000.000 EUR :)

Bummer :(

Marc





More information about the fpc-devel mailing list