[fpc-pascal] Common class type

2015-03-20 Thread Torsten Bonde Christiansen
Hi. Is there method in fpc to find the highest common class-type of two derived classes? Regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pasca

Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-20 Thread Mark Morgan Lloyd
Coyo Stormcaller wrote: On 03/19/2015 04:25 AM, Mark Morgan Lloyd wrote: While it is possible to write a complete stack from scratch in any reasonably-complete programming language, and while this has been done for e.g. embedded systems (or by idiots such as myself for demonstration/testing pu

Re: [fpc-pascal] Mode Delphi and functions as parameters.

2015-03-20 Thread Michael Schnell
On 03/18/2015 03:49 PM, vfclists . wrote: Is passing a function as parameter without the '@' symbol accepted in Delphi? Yep. And to me it looks "nicer than using "@", even though it is obviously sloppy syntax and introduces an ambiguity (what to to if a function has no parameter and retu

Re: [fpc-pascal] PtrInt - possible candidate to be marked as deprecated

2015-03-20 Thread Michael Schnell
On 03/18/2015 05:36 PM, Tony Whyman wrote: TDataEvent = procedure (Data: PtrInt) of object; To me PtrUInt seems more appropriate. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/lis

Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-20 Thread Michael Schnell
On 03/20/2015 12:18 AM, Coyo Stormcaller wrote: With a Userspace TCP/IP stack, I can send strange traffic with a raw UDP port. In fact colleagues of mine once in Delphi implemented a TCP - like solution that uses UDP transfer to do secure, especially low overhead transfers via GPRS. So I

Re: [fpc-pascal] Thoughts on Shell Approach to TCP Sockets

2015-03-20 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 03/20/2015 12:18 AM, Coyo Stormcaller wrote: With a Userspace TCP/IP stack, I can send strange traffic with a raw UDP port. In fact colleagues of mine once in Delphi implemented a TCP - like solution that uses UDP transfer to do secure, especially low overhead tr

[fpc-pascal] Where is the 'write' function defined and how is it different from 'writeln'?

2015-03-20 Thread vfclists .
Where is the 'write' function defined and how is it different from 'writeln'? I can see a lot of fpc_writeXXX and other Write functions, but no 'write' itself -- Frank Church === http://devblog.brahmancreations.com ___ fpc-pas

Re: [fpc-pascal] Where is the 'write' function defined and how is it different from 'writeln'?

2015-03-20 Thread leledumbo
> Where is the 'write' function defined and how is it different from 'writeln'? > > I can see a lot of fpc_writeXXX and other Write functions, but no > 'write' itself those fpc_writeXXX ARE the actual write. Write(Ln) is NOT a function as like others whose implementation you can clearly see.

Re: [fpc-pascal] Where is the 'write' function defined and how is it different from 'writeln'?

2015-03-20 Thread vfclists .
On 20 March 2015 at 18:01, leledumbo wrote: > > Where is the 'write' function defined and how is it different from > 'writeln'? > > > > I can see a lot of fpc_writeXXX and other Write functions, but no > > 'write' itself > > those fpc_writeXXX ARE the actual write. Write(Ln) is NOT a functio

Re: [fpc-pascal] Where is the 'write' function defined and how is it different from 'writeln'?

2015-03-20 Thread Sven Barth
Am 20.03.2015 19:19 schrieb "vfclists ." : > > > > On 20 March 2015 at 18:01, leledumbo wrote: >> >> > Where is the 'write' function defined and how is it different from >> 'writeln'? >> > >> > I can see a lot of fpc_writeXXX and other Write functions, but no >> > 'write' itself >> >> those f

Re: [fpc-pascal] Where is the 'write' function defined and how is it different from 'writeln'?

2015-03-20 Thread vfclists .
On 20 March 2015 at 19:34, Sven Barth wrote: > Am 20.03.2015 19:19 schrieb "vfclists ." : > > > > > > > > > On 20 March 2015 at 18:01, leledumbo wrote: > >> > >> > Where is the 'write' function defined and how is it different from > >> 'writeln'? > >> > > >> > I can see a lot of fpc_writeXXX an

Re: [fpc-pascal] Where is the 'write' function defined and how is it different from 'writeln'?

2015-03-20 Thread Sven Barth
On 20.03.2015 21:18, vfclists . wrote: On 20 March 2015 at 19:34, Sven Barth mailto:pascaldra...@googlemail.com>> wrote: Am 20.03.2015 19:19 schrieb "vfclists ." mailto:vfcli...@gmail.com>>: > > > > On 20 March 2015 at 18:01, leledumbo mailto:leledumbo_c...@yahoo.co.i

[fpc-pascal] Portable coroutines

2015-03-20 Thread Mark Morgan Lloyd
Efficient implementation of coroutines requires CPU-specific code in the RTL and possibly the compiler. However http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html suggests a way that coroutines can be implemented in a portable fashion in C, how can this be done in Object Pascal? -- M

Re: [fpc-pascal] Common class type

2015-03-20 Thread Howard Page-Clark
On 20/03/2015 07:25, Torsten Bonde Christiansen wrote: Hi. Is there method in fpc to find the highest common class-type of two derived classes? I do not know of such a routine, though there may well be one somewhere. I would have said that the highest common class would always be TObject, be

[fpc-pascal] fpHttpClient and Https support ?

2015-03-20 Thread fredvs
Hello. First of all, congratulation for fpHttpClient.pas. It works directly, like charms, without to install any dependencies. => wow. I am able to do internet audio streaming with it, perfect. ;-) Hum, while trying to access Https sites, i get errors. ;-( In begin of fpHttpClient.pas, there is

Re: [fpc-pascal] fpHttpClient and Https support ?

2015-03-20 Thread silvioprog
On Fri, Mar 20, 2015 at 11:54 PM, fredvs wrote: > Hello. > > First of all, congratulation for fpHttpClient.pas. > It works directly, like charms, without to install any dependencies. => > wow. > > I am able to do internet audio streaming with it, perfect. ;-) > > Hum, while trying to access Https