[fpc-pascal] Re: FPC class syntax was extended to support delphi code

2013-02-02 Thread Arioch1
To draw a perspective, i am coming from, i want to use a library, that is built with long procedures, having 5-10 parametes, of those i usually really only need to set one or two. So i naturally decided to make a wrapper with fluent-style, chained API, so i can only set those params that i actual

[fpc-pascal] Re: FPC class syntax was extended to support delphi code

2013-02-02 Thread Arioch
В письме от Thu, 14 Jan 2010 18:50:50 +0400, Andreas Schneider сообщал: Can FPC have default class properties in Delphi mode or even ObjFpc mode? i probably won't really do it, for my major concern is still Delphi, and that makes a special note that "defaul" and "class" are mutually exclus

[fpc-pascal] how to get same pthreads code to compile between Linux and FreeBSD

2013-02-02 Thread Graeme Geldenhuys
Hi, I'm trying to get tiOPF to compile under FreeBSD. It works under Linux and Windows without problems. I got compiler errors using FPC 2.6.0 under FreeBSD, saying that the compiler couldn't decide which version of the sem_* methods to use. I had code like this in tiOPF: {$IFDEF MSWINDOWS}