From: Dmytry Lavrov <m31415@mail.ru>
Subject: Newbie question:procedural variables(call by reference)?
Date: Mon, 15 Sep 2003 20:42:28 +0400
Date: 2003-09-15T20:42:28+04:00 [thread overview]
Message-ID: <3F65EBF4.7CF3@mail.ru> (raw)
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!
;-).
next reply other threads:[~2003-09-15 16:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-15 16:42 Dmytry Lavrov [this message]
2003-09-15 18:20 ` Newbie question:procedural variables(call by reference)? Stephen Leake
2003-09-15 18:50 ` Gautier Write-only
2003-09-15 18:56 ` Jeffrey Carter
2003-09-16 10:45 ` Georg Bauhaus
2003-09-15 23:22 ` Matthew Heaney
2003-09-18 9:06 ` Dmytry Lavrov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox