Re: [fpc-pascal] Dynamic loading to static?

2019-10-26 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Sa., 26. Okt. 2019, 22:46: > > > > On Oct 26, 2019, at 12:55 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > tmpenum := y.GetEnumerator; > > while tmpenum.MoveNext do begin > > x := tmpenum.Current; > > // ... > > end; > > Ok, I

Re: [fpc-pascal] Dynamic loading to static?

2019-10-26 Thread Ryan Joseph
> On Oct 26, 2019, at 12:55 PM, Sven Barth via fpc-pascal > wrote: > > tmpenum := y.GetEnumerator; > while tmpenum.MoveNext do begin > x := tmpenum.Current; > // ... > end; Ok, I understand how you guys are seeing this now. I wasn’t thinking of it as a while loop so casting just made

[fpc-pascal] fpbind ipv6 version

2019-10-26 Thread Rainer Stratmann
https://www.freepascal.org/docs-html/current/rtl/sockets/fpbind.html Is there an example for IPV6? function fpbind( s: cint; addrx: psockaddr; addrlen: TSockLen ):cint; I guess psockaddr is different in IPV6 version. ___ fpc-pascal maillist -

Re: [fpc-pascal] Dynamic loading to static?

2019-10-26 Thread Sven Barth via fpc-pascal
Am 26.10.2019 um 14:56 schrieb Ryan Joseph: On Oct 26, 2019, at 4:26 AM, Sven Barth via fpc-pascal wrote: CodePointer(Py_Initialize) := GetProcAddress(handle, 'Py_Initialize'); Thanks that works. I don’t think I’ve ever cast a left side value before in Pascal and honestly I didn’t think

Re: [fpc-pascal] Dynamic loading to static?

2019-10-26 Thread Ryan Joseph
> On Oct 26, 2019, at 4:26 AM, Sven Barth via fpc-pascal > wrote: > > CodePointer(Py_Initialize) := GetProcAddress(handle, 'Py_Initialize'); Thanks that works. I don’t think I’ve ever cast a left side value before in Pascal and honestly I didn’t think it was even possible. In fact didn’t

Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-26 Thread Graeme Geldenhuys
On 26/10/2019 11:24 am, Graeme Geldenhuys wrote: > Do you have a mailing list archive link where the topic originated > from. No worries, I found it. Regards, Graeme ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-26 Thread Graeme Geldenhuys
On 14/10/2019 3:40 pm, Karoly Balogh (Charlie/SGR) wrote: > The structure in question is in rtl/bsd/ostypes.inc. > > Sadly I know very little about FreeBSD, and I don't have it in any form, > and never had it, so I'd pass on attempting to reproduce and fix this. I'll update my FPC 3.3.x and

Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-26 Thread Graeme Geldenhuys
On 26/10/2019 9:31 am, Mattias Gaertner via fpc-pascal wrote: >> :-) There is no such thing as "pure English". > > He meant ASCII. No problem. The smiley face also as a hidden meaning. English is such a convoluted language (due to its long history), not even the English (England) can speak it

Re: [fpc-pascal] DirectoryExists on FreeBSD , problem

2019-10-26 Thread Mattias Gaertner via fpc-pascal
On Sat, 26 Oct 2019 00:45:22 +0100 Graeme Geldenhuys wrote: > On 14/10/2019 7:38 pm, Alexey Tor. wrote: > > >Does SysUtils.DirectoryExists work? > > > > No, the dir name is pure English, so DirectoryExistsUTF8 does the > > same. > > :-) There is no such thing as "pure English". He meant

Re: [fpc-pascal] Dynamic loading to static?

2019-10-26 Thread Sven Barth via fpc-pascal
Am 25.10.2019 um 20:49 schrieb Ryan Joseph: On Oct 25, 2019, at 12:02 PM, Michael Van Canneyt wrote: You need to manually change them. if you look in the packages, you'll see that many library import units exist in 2 flavours. One static, one dynamic. That’s what I was afraid of. btw, I