Re: PL/pgSQL 'i = i + 1' Syntax - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: PL/pgSQL 'i = i + 1' Syntax
Date
Msg-id 446C8426.1080809@dunslane.net
Whole thread Raw
In response to Re: PL/pgSQL 'i = i + 1' Syntax  (Hannu Krosing <hannu@skype.net>)
List pgsql-hackers
Hannu Krosing wrote:
>
> Can you do something like "A > (B := C)" or "IF (A:=B) THEN ..." in
> ADA ?
>
>   

Er, that's "Ada"; "ADA" is the American Dental Association among other 
things.

And no you certainly can't do it. Assignment is a statement, not an 
expression, and this family of languages distinguishes between the two 
quite sharply. This is quite different from, say, C, where an assignment 
statement is simply an expression whose evaluation has a side effect and 
whose value is thrown away.

Anyway, this discussion seems to going nowhere much.

cheers

andrew



pgsql-hackers by date:

Previous
From: Robert Treat
Date:
Subject: Re: Google and the Beta Freeze
Next
From: Tom Lane
Date:
Subject: Re: Google and the Beta Freeze