From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3bcd1f427235dca8 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: "R" Newsgroups: comp.lang.ada Subject: Re: expect procedure name in procedure call(newbie) Date: 29 Dec 2004 05:03:24 -0800 Organization: http://groups.google.com Message-ID: <1104325404.761331.70990@f14g2000cwb.googlegroups.com> References: <1104316623.493536.111460@f14g2000cwb.googlegroups.com> <87hdm5xq7x.fsf@deneb.enyo.de> NNTP-Posting-Host: 83.238.46.94 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1104325410 23273 127.0.0.1 (29 Dec 2004 13:03:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 29 Dec 2004 13:03:30 +0000 (UTC) In-Reply-To: <87hdm5xq7x.fsf@deneb.enyo.de> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=83.238.46.94; posting-account=vW-V7A0AAADVHjc0FRFWzwhUHLUBcq4I Xref: g2news1.google.com comp.lang.ada:7289 Date: 2004-12-29T05:03:24-08:00 List-Id: 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