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

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: PL/pgSQL 'i = i + 1' Syntax
Дата
Msg-id 1147931035.3889.40.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: PL/pgSQL 'i = i + 1' Syntax  ("Jonah H. Harris" <jonah.harris@gmail.com>)
Ответы Re: PL/pgSQL 'i = i + 1' Syntax
Список pgsql-hackers
Ühel kenal päeval, K, 2006-05-17 kell 20:17, kirjutas Jonah H. Harris:
> On 5/17/06, Hannu Krosing <hannu@skype.net> wrote:
> > Does ADA have both assignment and comparison as operators, or is
> > assignment a statement ?
> 
> Yes.  Assignment is := and comparison is =

I meant to ask, if := is a statement and = is an operator in ADA or are
both operators. Statemants and operators are two different language
constructs, usable in different places. 

In C both = and == are operators and results of both can further be used
in expressions, in most languages assignment is a statement not an
operator,  and statements have no result.

Can you do something like "A > (B := C)" or "IF (A:=B) THEN ..." in
ADA ?


-- 
----------------
Hannu Krosing
Database Architect
Skype Technologies OÜ
Akadeemia tee 21 F, Tallinn, 12618, Estonia

Skype me:  callto:hkrosing
Get Skype for free:  http://www.skype.com

NOTICE: This communication contains privileged or other confidential
information. If you have received it in error, please advise the sender
by reply email and immediately delete the message and any attachments
without copying or disclosing the contents.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: buildfarm failures
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: PL/pgSQL 'i = i + 1' Syntax