Re: PL/pgSQL 'i = i + 1' Syntax

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Hannu Krosing <hannu(at)skype(dot)net>
Cc: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>, josh(at)agliodbs(dot)com, pgsql-hackers(at)postgresql(dot)org, tgl(at)sss(dot)pgh(dot)pa(dot)us, all(at)adv(dot)magwien(dot)gv(dot)at
Subject: Re: PL/pgSQL 'i = i + 1' Syntax
Date: 2006-05-18 14:26:46
Message-ID: 446C8426.1080809@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-05-18 14:39:24 Re: Google and the Beta Freeze
Previous Message Tom Lane 2006-05-18 13:45:54 Re: does wal archiving block the current client connection?