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,start 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: expect procedure name in procedure call(newbie) Date: 29 Dec 2004 02:37:03 -0800 Organization: http://groups.google.com Message-ID: <1104316623.493536.111460@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: 83.238.46.94 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1104316628 9995 127.0.0.1 (29 Dec 2004 10:37:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 29 Dec 2004 10:37:08 +0000 (UTC) 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:7284 Date: 2004-12-29T02:37:03-08:00 List-Id: Hello. I've got 'expect procedure name in procedure call' warning but I think my code is good Inside testclass.adb I have Create function and when I'm trying to call it from main.adb unit I receive that error. Below are full codes of my Ada units. And by the way - how can I dynamically allocate memory for e.g. 10 elements(array of Floats)? How can I reallocate them to 20 elements or 4? How can I free the memory? thanks in advance best regards R Codes: main.adb: -------- with testclass; procedure Main is object : testclass.rec1_Access; begin testclass.Create(object, 10); end Main; testclass.ads: -------------- package testclass is type rec1 is tagged private; type rec1_Access is access rec1; function Create(this: rec1_Access; s: Integer) return Integer; private type rec1 is tagged record field: Integer; end record; end testclass; testclass.adb: -------------- package body testclass is function Create(this: rec1_Access; s: Integer) return Integer is begin this.field :=s; return this.field; end Create; end testclass;