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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,15ce2ff6360d2b58,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-15 09:45:43 PST Message-ID: <3F65EBF4.7CF3@mail.ru> Date: Mon, 15 Sep 2003 20:42:28 +0400 From: Dmytry Lavrov X-Mailer: Mozilla 3.0Gold (Win95; I) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Newbie question:procedural variables(call by reference)? Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 213.248.15.107 X-Trace: shknews01 1063643941 213.248.15.107 (16 Sep 2003 00:39:01 +0800) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.stueberl.de!news.space.net!newsfeed.freenet.de!nntp.gblx.net!news2.ilink.net!shknews01 Xref: archiver1.google.com comp.lang.ada:42529 Date: 2003-09-15T20:42:28+04:00 List-Id: There are no procedural variables(calls by reference) in ADA,right?(or i missed something...). How to live without 'em? (i guess , 'like in java' ;-) What for example if i have wrote,say.... expression evaluator. In Pascal(bit extended), and with way to add custom functions,like procedure AddFunc(name:string;numparams:integer;additionalparam:mashine_word;fn:CustomFunction); How i can move it to ada....(of course i know that it's sometimes better to do all with OOP,but here is much simpler to have array with references ,than doing crazy extensible objects). Normally i can use something like type FunctionInfo=record name:string;numparams:integer;additionalparam:mashine_word;fn:CustomFunction; end; and simple sorted array of 'em,finding right routine by binary search. Why peoples sometime talking about OS in ada?...it's inpossible w/o call by reference,OOP is based on call by reference,right?. Heh,formally running a program from hard disk is a call by reference! ;-).