comp.lang.ada
 help / color / mirror / Atom feed
From: Egil H H <ehh.public@gmail.com>
Subject: Re: Why this program does not compile? (iterators)
Date: Fri, 22 Aug 2014 17:15:42 -0700 (PDT)
Date: 2014-08-22T17:15:42-07:00	[thread overview]
Message-ID: <74cdd2cf-7680-4bd5-9931-3a2b4e109dc2@googlegroups.com> (raw)
In-Reply-To: <lt7u1i$6bn$1@speranza.aioe.org>

On Friday, August 22, 2014 7:18:45 PM UTC+2, Victor Porton wrote:
> Why this program does not compile?
> 
>    overriding function First (Object: My_Description_Iterator) return My_Description_Cursor is (null record);
> 
>    overriding function Next (Object: My_Description_Iterator; Position: My_Description_Cursor) return My_Description_Cursor is (null record);
> 
> 

A result of an expression function should be within parenthesis, an aggregate should as well. Try double parenthesis to return an aggregate from an expression function.
The error message is weird, though.

  parent reply	other threads:[~2014-08-23  0:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-22 17:18 Why this program does not compile? (iterators) Victor Porton
2014-08-22 23:39 ` Randy Brukardt
2014-08-23  4:56   ` Victor Porton
2014-08-23  0:15 ` Egil H H [this message]
2014-08-23  0:31   ` Adam Beneschan
2016-04-22 11:14 ` mockturtle
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox