comp.lang.ada
 help / color / mirror / Atom feed
* Newbie question:procedural variables(call by reference)?
@ 2003-09-15 16:42 Dmytry Lavrov
  2003-09-15 18:20 ` Stephen Leake
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Dmytry Lavrov @ 2003-09-15 16:42 UTC (permalink / 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!
;-).



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-09-18  9:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-15 16:42 Newbie question:procedural variables(call by reference)? Dmytry Lavrov
2003-09-15 18:20 ` 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

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