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] 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

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

2016-02-04 Thread Graeme Geldenhuys
On 2016-02-04 21:33, Michael Van Canneyt wrote: > I'm also disappointed that my bank account doesn't contain millions. > But I learned to live with it :-) Ah, you give up too soon. ;-) Regards, - Graeme - ___ fpc-pascal maillist -

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

2016-02-04 Thread Mazola Winstrol
2016-02-04 18:41 GMT-02:00 Felipe Monteiro de Carvalho < felipemonteiro.carva...@gmail.com>: > Disappointed :( > > Why was it done? I thought that pretty much everyone was in favor? > > Due to the fact that we like flame, flame and flame > It isn't very pascalish, that's true, but we could

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

2016-02-04 Thread Felipe Monteiro de Carvalho
On Thu, Feb 4, 2016 at 7:03 PM, Mazola Winstrol wrote: > Lets wait for the Delphi implementation so, we will not start a new flame. You mean like "wait 5-10 years until they decide independently that they want to do it" or are there serious plans for Delphi to support this,

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

2016-02-04 Thread Michael Van Canneyt
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 yet. Why was it done? I thought that pretty much everyone was in

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

2016-02-04 Thread Felipe Monteiro de Carvalho
On Thu, Feb 4, 2016 at 7:33 PM, Michael Van Canneyt wrote: > b) a ? b : c > From the people that responded in the core discussion, the majority was for > the a ? b : c syntax, or not adding at all (not all replied). You mean like literally using "?" and ":" ? > If

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

2016-02-04 Thread Graeme Geldenhuys
On 2016-02-04 22:25, Michael Van Canneyt wrote: > You're more than welcome to donate. Shall I give you my IBAN ? > Can't promise it's tax-deductible, though :-) :-D G. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

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

2016-02-04 Thread Graeme Geldenhuys
On 2016-02-04 21:33, Michael Van Canneyt wrote: > Samples of non-desirable constructs include: Thanks goodness. Looking at some of your examples, that is a whole new can of worms, and far from what I think the Pascal language stands for. Regards, - Graeme -

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

2016-02-04 Thread Mazola Winstrol
2016-02-04 19:13 GMT-02:00 Felipe Monteiro de Carvalho < felipemonteiro.carva...@gmail.com>: > On Thu, Feb 4, 2016 at 7:03 PM, Mazola Winstrol > wrote: > > Lets wait for the Delphi implementation so, we will not start a new > flame. > > You mean like "wait 5-10 years until

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

2016-02-04 Thread Vojtěch Čihák
. __ Od: Sven Barth <pascaldra...@googlemail.com> Komu: "FPC-Pascal users discussions" <fpc-pascal@lists.freepascal.org> Datum: 04.02.2016 20:25 Předmět: [fpc-pascal] IfThen() intrinsic removed Hello together! The IfThen() intrinsic has been removed again. There wi

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

2016-02-04 Thread silvioprog
On Thu, Feb 4, 2016 at 6:33 PM, 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 :-) >

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

2016-02-04 Thread Michael Van Canneyt
On Thu, 4 Feb 2016, Felipe Monteiro de Carvalho wrote: On Thu, Feb 4, 2016 at 7:33 PM, Michael Van Canneyt wrote: b) a ? b : c From the people that responded in the core discussion, the majority was for the a ? b : c syntax, or not adding at all (not all replied).

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

2016-02-04 Thread 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 ":" ? Yes. As used in C-like languages. There was also voices for a more verbose solution. But introducing 2 new operators based on words (a-z, not

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

2016-02-04 Thread Michael Van Canneyt
On Thu, 4 Feb 2016, Graeme Geldenhuys wrote: On 2016-02-04 21:33, Michael Van Canneyt wrote: I'm also disappointed that my bank account doesn't contain millions. But I learned to live with it :-) Ah, you give up too soon. ;-) You're more than welcome to donate. Shall I give you my IBAN ?

[fpc-pascal] IfThen() intrinsic removed

2016-02-04 Thread Sven Barth
Hello together! The IfThen() intrinsic has been removed again. There will be *no* replacement in the foreseeable future. This is not up for discussion. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

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

2016-02-04 Thread John Lee
luddite_clique 1 progressives 0 On 4 February 2016 at 19:25, Sven Barth wrote: > Hello together! > > The IfThen() intrinsic has been removed again. There will be *no* > replacement in the foreseeable future. This is not up for discussion. > > Regards, > Sven >

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

2016-02-04 Thread Bart
On 2/4/16, John Lee wrote: > luddite_clique 1 progressives 0 Please don't start a flame war. Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2016-02-04 Thread Dmitry Boyarintsev
On Thu, Feb 4, 2016 at 2:44 PM, John Lee wrote: > luddite_clique 1 progressives 0 > > Just wait for Delphi to implement this... speaking of which, why they've not done it a long time ago? They could, but probably didn't do that, for very likely the same reasons. thanks,

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

2016-02-04 Thread Felipe Monteiro de Carvalho
Disappointed :( Why was it done? I thought that pretty much everyone was in favor? It isn't very pascalish, that's true, but we could implement it like the proposed "inline if A then B else C" syntax... which is very pascalish and cool. thanks, -- Felipe Monteiro de Carvalho