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

2015-03-21 Thread vfclists .
On 20 March 2015 at 20:54, Sven Barth pascaldra...@googlemail.com wrote: On 20.03.2015 21:18, vfclists . wrote: On 20 March 2015 at 19:34, Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com wrote: Am 20.03.2015 19:19 schrieb vfclists . vfcli...@gmail.com

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

2015-03-21 Thread Constantine Yannakopoulos
On Fri, Mar 20, 2015 at 11:55 AM, Michael Schnell mschn...@lumino.de wrote: what to to if a function has no parameter and returns a value that is a pointer to a function of exactly this type ? ​The logical thing for the compiler would be to assume that the programmer meant that a reference

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

2015-03-21 Thread Florian Klaempfl
Am 21.03.2015 um 11:13 schrieb vfclists .: I need to get the output of a program which uses a lot of Write and Writeln commands into the GUI in realtime, by that I not having to output it to a text file and reading it afterwards, but by capturing the output of each Write command into a

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

2015-03-21 Thread Sven Barth
On 21.03.2015 11:13, vfclists . wrote: On 20 March 2015 at 20:54, Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com wrote: On 20.03.2015 21:18, vfclists . wrote: On 20 March 2015 at 19:34, Sven Barth pascaldra...@googlemail.com

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

2015-03-21 Thread Jürgen Hestermann
Am 2015-03-21 um 11:04 schrieb Constantine Yannakopoulos: PS: I tend to always use the () notation when invoking functions with no arguments so it will be clear to a future reader that I'm invoking a function and not assigning some variable. This should be the job of the langugage

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

2015-03-21 Thread fredvs
Excellent, thanks. PS : Do you remember a old topic in Lazarus forum about uos and internet audio streaming ? (It was you who converts and helps me to install uos to GitHub). Now uos does internet audio streaming ! = https://github.com/fredvs/uos Thanks Sergio. - Many thanks ;-) -- View

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

2015-03-21 Thread Michael Van Canneyt
On Sat, 21 Mar 2015, fredvs wrote: Ooops, in earlier topic = Thanks Silvio. ;-) And, by the way, who may i thank for that excellent fpHttpClient.pas ? I plead guilty. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

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

2015-03-21 Thread fredvs
And, by the way, who may i thank for that excellent fpHttpClient.pas ? I plead guilty. Michael. Ha, so MANY THANKS Michael for your excellent. brilliant and easy to use fpHttpClient.pas Fre;D - Many thanks ;-) -- View this message in context:

[fpc-pascal] SVN Protocolo implementation

2015-03-21 Thread Antonio Sanguigni
Hello, I would like to know if there is a OP implementation of SVN Protocol. I know there is a LazSvnPkg but it is basde on TProcess and communication with SVN bin. This would be my second chance so my question. I would prefer a OP implementation, even if very basic like import, commit and

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

2015-03-21 Thread fredvs
Ooops, in earlier topic = Thanks Silvio. ;-) And, by the way, who may i thank for that excellent fpHttpClient.pas ? Fre;D - Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fpHttpClient-and-Https-support-tp5721435p5721443.html Sent from

Re: [fpc-pascal] SVN Protocolo implementation

2015-03-21 Thread Mark Morgan Lloyd
Antonio Sanguigni wrote: Hello, I would like to know if there is a OP implementation of SVN Protocol. I know there is a LazSvnPkg but it is basde on TProcess and communication with SVN bin. This would be my second chance so my question. I would prefer a OP implementation, even if very basic

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-21 Thread Michael Van Canneyt
On Sat, 21 Mar 2015, fredvs wrote: Hello. In Unix systems File Descriptor can be created with fpPipe(FDInput, FDOutput). Then FDInput/FDOutput may be used as file descriptors. Ok, perfect. But fpPipe is part of BaseUnix/Unix... So the question is: How to create such of File Descriptor

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-21 Thread fredvs
Hello. Added Pipes in uses section. Changed = AssignPipe(InHandle, FOutHandle); Into = CreatePipeHandles (InHandle, FOutHandle, PipeBufferSize); Then in code = var Http: TFPHTTPClient; Output: THandleStream = nil; URL: String; begin Http := TFPHTTPClient.Create(nil); Output :=

[fpc-pascal] File Descriptor in Windows ?

2015-03-21 Thread fredvs
Hello. In Unix systems File Descriptor can be created with fpPipe(FDInput, FDOutput). Then FDInput/FDOutput may be used as file descriptors. Ok, perfect. But fpPipe is part of BaseUnix/Unix... So the question is: How to create such of File Descriptor with Windows?... Many thanks. Fre;D 1)

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-21 Thread fredvs
Hello. In Unix systems File Descriptor can be created with fpPipe(FDInput, FDOutput). Then FDInput/FDOutput may be used as file descriptors. Ok, perfect. But fpPipe is part of BaseUnix/Unix... So the question is: How to create such of File Descriptor with Windows?... See unit pipes,

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-21 Thread fredvs
Re-hello. Tried with this too = Change = Output: THandleStream = nil; into = Output: TOutputPipeStream = nil; and Change = Output := THandleStream.Create(FOutHandle); into = Output:=TOutputPipeStream.Create (FOutHandle); = Compiles + works perfect in Linux ;-) = Compiles ok but does

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-21 Thread Michael Van Canneyt
On Sat, 21 Mar 2015, fredvs wrote: Hello. Added Pipes in uses section. Changed = AssignPipe(InHandle, FOutHandle); Into = CreatePipeHandles (InHandle, FOutHandle, PipeBufferSize); Then in code = var Http: TFPHTTPClient; Output: THandleStream = nil; URL: String; begin Http :=

Re: [fpc-pascal] Portable coroutines

2015-03-21 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: 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

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

2015-03-21 Thread vfclists .
On 21 March 2015 at 10:04, Constantine Yannakopoulos alfasud...@gmail.com wrote: On Fri, Mar 20, 2015 at 11:55 AM, Michael Schnell mschn...@lumino.de wrote: what to to if a function has no parameter and returns a value that is a pointer to a function of exactly this type ? ​The logical

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-21 Thread Andrew Haines
Check for writeln's in the htmlthread unit you added. On March 21, 2015 6:23:44 PM EDT, fredvs fi...@hotmail.com wrote: What do you do with the inHandle ? Michael. It is used by mp123 mp3-decoder library. =function mpg123_open_fd(mph: Tmpg123_handle; fd: integer); fp (file descriptor) :=

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-21 Thread fredvs
What do you do with the inHandle ? Michael. It is used by mp123 mp3-decoder library. =function mpg123_open_fd(mph: Tmpg123_handle; fd: integer); fp (file descriptor) := InHandle ; It seems that InHandle as file descriptor does not work on Windows. But in *nix system, it works. -

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

2015-03-21 Thread vfclists .
On 21 March 2015 at 11:35, Sven Barth pascaldra...@googlemail.com wrote: On 21.03.2015 11:13, vfclists . wrote: On 20 March 2015 at 20:54, Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com wrote: On 20.03.2015 21:18, vfclists . wrote: On 20 March

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

2015-03-21 Thread Jonas Maebe
On 22/03/15 00:11, vfclists . wrote: In case of wanting to use different Text objects is it possible to prefix the Write command with the Text e.g Write(TextObject, 'outputtext')? Do Write and WriteLn support something like that? http://www.freepascal.org/docs-html/rtl/system/write.html

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

2015-03-21 Thread Sven Barth
On 22.03.2015 00:11, vfclists . wrote: Is the Text object the Write is using global for the whole program or thread, ie all Writes will go to that Text object until it is reverted back to the default? The variables Output, Input and StdErr are thread local so you need to set them up for each