Re: Question about Delphi versus other languages
From: Alf Christophersen (alf.christophersen_at_basalmed.uio.no)
Date: 10/14/04
- Next message: Alf Christophersen: "Re: Reading serial port lines"
- Previous message: Mark van de Veerdonk: "Problem opening TClientDataSet"
- In reply to: Dr John Stockton: "Re: Question about Delphi versus other languages"
- Next in thread: Bruce Roberts: "Re: Question about Delphi versus other languages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 14 Oct 2004 09:39:46 +0200
On Wed, 13 Oct 2004 22:20:08 +0100, Dr John Stockton
<spam@merlyn.demon.co.uk> wrote:
>IMHO, for example, it should contrast, for constants B & C,
> * if A then x := B else x := C ;
> * const Z : array [boolean] of ... = (B, C) ; ... x := Z[A] ;
> * function Q(const a : boolean) : ... ;
> begin if a then Q := B else Q := C end ; ... x := Q(A) ; .
In Simula 56 there was a construct I often miss in Pascal
;
A:= If B then C else D;
MyDecidedValue := If B then
begin
if E then {C part}
5
else
10
end
else
begin {D part}
if F then
15
else
20;
end;
etc.
- Next message: Alf Christophersen: "Re: Reading serial port lines"
- Previous message: Mark van de Veerdonk: "Problem opening TClientDataSet"
- In reply to: Dr John Stockton: "Re: Question about Delphi versus other languages"
- Next in thread: Bruce Roberts: "Re: Question about Delphi versus other languages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]