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

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: PL/pgSQL 'i = i + 1' Syntax
Дата
Msg-id 446C8426.1080809@dunslane.net
обсуждение исходный текст
Ответ на Re: PL/pgSQL 'i = i + 1' Syntax  (Hannu Krosing <hannu@skype.net>)
Список 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 по дате отправления:

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: Google and the Beta Freeze
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Google and the Beta Freeze