[fpc-pascal] FPC and SSH

2016-02-05 Thread Mark Morgan Lloyd
I've come across http://forum.lazarus.freepascal.org/index.php?topic=15935.0 which suggests that there are some interface files to allow an FPC program to act as a client to an SSH server, but can't see any files attached. I don't have a particularly urgent need for this, but does anybody

Re: [fpc-pascal] FPC and SSH

2016-02-05 Thread Graeme Geldenhuys
On 2016-02-05 16:41, Mark Morgan Lloyd wrote: > but can't see any files attached. You have to be logged into the Forum's otherwise you don't see attachments like images, files etc. I didn't check, but I guess that is your problem. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI

Re: [fpc-pascal] FPC and SSH (Mark Morgan Lloyd)

2016-02-05 Thread Seth Grover
> interface files to allow an FPC program to act as a client to an SSH server, Here's a link to the interface files I use for acting as an ssh client via libssh2. I've included my libcurl headers as well. There are two versions of each, one for compile-time linking and one for dynamic loading of

Re: [fpc-pascal] FPC and SSH

2016-02-05 Thread Mark Morgan Lloyd
Graeme Geldenhuys wrote: On 2016-02-05 16:41, Mark Morgan Lloyd wrote: but can't see any files attached. You have to be logged into the Forum's otherwise you don't see attachments like images, files etc. I didn't check, but I guess that is your problem. Sounds reasonable, thanks. -- Mark

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
Hi, On 04/02/16 21:33, Michael Van Canneyt wrote: > > > On Thu, 4 Feb 2016, Felipe Monteiro de Carvalho wrote: > >> Disappointed :( > > Well, such is life. I'm also disappointed that my bank account doesn't > contain millions. But I learned to live with it :-) > > But all hope is not lost

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Michael Van Canneyt
On Fri, 5 Feb 2016, Lukasz Sokol wrote: But introducing 2 new operators based on words (a-z, not 16 bit) means 2 new keywords and causes conflicts. Except if "then" and "else" are used (but without "if") x := 1 < 3 then 5 else 4; No. Think about the ambiguities that arise if you use this

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 09:48, Marco van de Voort wrote: > In our previous episode, Lukasz Sokol said: >> What of >> >> x := ( condition, true:=truevalue, false:=falsevalue); > > Clashes too much with _() from dxgettext. > Uh, ok. then what about double braces (( and )) ? Oh and using ';' for condition

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 10:35, Andreas wrote: > > On Fri 05/02/2016 07:49, Lukasz Sokol wrote: >> That it's C, not Pascal ;) and, um. sorry I do not have a c spec on hand, >> does it really work that way in C - only evaluates truevalue or falsevalue >> not both? >> >> I wrote another one in another email,

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Mark Morgan Lloyd
Michael Van Canneyt wrote: What if it required use of braces: x := (expression then truevalue else falsevalue); Let's make it simple: The use of "if", "then" and "else" are not up for discussion. Jonas has told us to drop this, but please could I ask for a clarification: is that your

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Marco van de Voort
In our previous episode, Lukasz Sokol said: > What of > > x := ( condition, true:=truevalue, false:=falsevalue); Clashes too much with _() from dxgettext. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Sven Barth
Am 05.02.2016 10:46 schrieb "Lukasz Sokol" : > > On 05/02/16 09:22, Lukasz Sokol wrote: > > Hi, > > > > On 04/02/16 21:33, Michael Van Canneyt wrote: > >> > >> > >> On Thu, 4 Feb 2016, Felipe Monteiro de Carvalho wrote: > >> > >>> Disappointed :( > >> > >> Well, such is life.

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread OBones
Michael Van Canneyt wrote: The only use case that would be gained is the non-evaluation of one of the arguments. Yes, and that's pretty much the only use that I could think of, but it would be very convenient when testing for a variable to be assigned and give a default value it if is not.

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Michael Van Canneyt
On Fri, 5 Feb 2016, Lukasz Sokol wrote: On 05/02/16 09:23, Michael Van Canneyt wrote: On Fri, 5 Feb 2016, Lukasz Sokol wrote: But introducing 2 new operators based on words (a-z, not 16 bit) means 2 new keywords and causes conflicts. Except if "then" and "else" are used (but without

Re: [fpc-pascal] Ararat Synapse UDP Rx Speed (Mbps)

2016-02-05 Thread Sven Barth
Am 05.02.2016 09:42 schrieb "Jonas Maebe" : > > > > On 04 Feb 2016, at 23:36, Brian wrote: > > > > A test with two Linux (Ubuntu 14.04) PC's each with a 1Gbps NIC , with one PC > > sending 300byte packets directly to the other PC (no switch involved) .

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 09:45, Michael Van Canneyt wrote: > [...] >> so I think no /current/ keywords would be allowed either... I see. > > Anything that spells 'statement' is indeed going to meet with fierce > resistance. > >> >> What of >> >> x := ( condition, true:=truevalue, false:=falsevalue); > >

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread LacaK
Dňa 5.2.2016 o 11:50 Lukasz Sokol napísal(a): On 05/02/16 10:35, Andreas wrote: On Fri 05/02/2016 07:49, Lukasz Sokol wrote: That it's C, not Pascal ;) and, um. sorry I do not have a c spec on hand, does it really work that way in C - only evaluates truevalue or falsevalue not both? I wrote

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Tomas Hajny
Hello everybody, Since we're getting back to the same sort of discussion, I'd like to remind three statements (before closing this thread here similarly to the other two): 1) Sven wrote: "There will be *no* replacement in the foreseeable future. This is not up for discussion." 2) Michael wrote:

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 11:22, Tomas Hajny wrote: > Hello everybody, > > Since we're getting back to the same sort of discussion, I'd like to > remind three statements (before closing this thread here similarly to the > other two): > [...] > Tomas > (one of the FPC mailing list moderators) Will you or

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Giuliano Colla
Il 05/02/2016 10:58, Michael Van Canneyt ha scritto: And please remember, we do not NEED this construct; the added value is marginal as I indicated. Simply not adding is an option. Not all change is necessarily progress. +1 C philosophy is to save *typing* time. Pascal philosophy is to save

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Jonas Maebe
Lukasz Sokol wrote on Fri, 05 Feb 2016: Will you or other moderators, accept a request of subscription of fpc-other coming from either automated process on gmane.org or from gmane admins? I believe fpc-other would be a worthy addition on gmane.org. After your previous mail about this, I

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 12:26, Jonas Maebe wrote: > > Lukasz Sokol wrote on Fri, 05 Feb 2016: > >> Will you or other moderators, accept a request of subscription of fpc-other >> coming from either automated process on gmane.org or from gmane admins? >> >> I believe fpc-other would be a worthy addition on

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 07:03, Sven Barth wrote: > Am 04.02.2016 23:43 schrieb "Martin" >: >> >> On 04/02/2016 22:13, Michael Van Canneyt wrote: >>> >>> >>> On Thu, 4 Feb 2016, Felipe Monteiro de Carvalho wrote: You mean like literally using "?" and

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 09:23, Michael Van Canneyt wrote: > > > On Fri, 5 Feb 2016, Lukasz Sokol wrote: > But introducing 2 new operators based on words (a-z, not 16 bit) means 2 new keywords and causes conflicts. Except if "then" and "else" are used (but without "if") x := 1 < 3 then

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Lukasz Sokol
On 05/02/16 09:22, Lukasz Sokol wrote: > Hi, > > On 04/02/16 21:33, Michael Van Canneyt wrote: >> >> >> On Thu, 4 Feb 2016, Felipe Monteiro de Carvalho wrote: >> >>> Disappointed :( >> >> Well, such is life. I'm also disappointed that my bank account doesn't >> contain millions. But I learned to

Re: [fpc-pascal] IfThen() intrinsic removed

2016-02-05 Thread Reimar Grabowski
On Fri, 5 Feb 2016 12:08:57 +0100 LacaK wrote: > Why not just reuse C: >x := condition ? truevalue : falsevalue ; > As stated before. > May be only for {$COPERATORS ON} > (So it will not influence Pascal language, but for those who want use > it, can enable this syntax