comp.lang.ada
 help / color / mirror / Atom feed
From: "R" <ruthless@poczta.onet.pl>
Subject: Re: expect procedure name in procedure call(newbie)
Date: 29 Dec 2004 05:03:24 -0800
Date: 2004-12-29T05:03:24-08:00	[thread overview]
Message-ID: <1104325404.761331.70990@f14g2000cwb.googlegroups.com> (raw)
In-Reply-To: <87hdm5xq7x.fsf@deneb.enyo.de>

OK so i added new variable ret(Integer) and added:
ret := testclass.Create(object, 10);

but now Create raises an expception: CONSTRAINT_ERROR : testclass.adb:5
access check failed

where the Create looks like:
function Create(this: rec1_Access; s: Integer) return Integer is
begin
this.field := s; -- this is the 5th line - access check error
return this.field;
end Create;

basicly  the codes are the same from my first post - I only folow Your
instuction not to ignore the return value.

Is my access type wrong? it point to rec1 tagged record.
thanks in advance for Your help
best regards R




  reply	other threads:[~2004-12-29 13:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-29 10:37 expect procedure name in procedure call(newbie) R
2004-12-29 12:07 ` Florian Weimer
2004-12-29 13:03   ` R [this message]
2004-12-29 13:24     ` Mark Lorenzen
2004-12-29 12:32 ` Martin Dowie
2004-12-29 12:34   ` Martin Dowie
2004-12-29 18:46 ` Martin Krischik
replies disabled

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