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

From Hannu Krosing
Subject Re: PL/pgSQL 'i = i + 1' Syntax
Date
Msg-id 1147931035.3889.40.camel@localhost.localdomain
Whole thread Raw
In response to Re: PL/pgSQL 'i = i + 1' Syntax  ("Jonah H. Harris" <jonah.harris@gmail.com>)
Responses Re: PL/pgSQL 'i = i + 1' Syntax
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: buildfarm failures
Next
From: "Albe Laurenz"
Date:
Subject: Re: PL/pgSQL 'i = i + 1' Syntax