[Oberon] Calling a command from within a normal procedure

Chris Burrows chris at cfbsoftware.com
Mon Mar 7 11:37:50 CET 2016


> -----Original Message-----
> From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
> Chris Burrows
> Sent: Monday, 7 March 2016 6:06 PM
> To: 'ETH Oberon and related systems'
> Subject: Re: [Oberon] Calling a command from within a normal
> procedure
> 
> > -----Original Message-----
> > From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
> > Srinivas Nayak
> > Sent: Monday, 7 March 2016 3:09 PM
> > To: ETH Oberon and related systems
> > Subject: [Oberon] Calling a command from within a normal procedure
> >
> > Dear All,
> >
> > Can we call a procedure from within a program which we can call as
> a
> > command?
> > Ex. Edit.Open
> > This is a pure procedure and we can use this as a command.
> > Can we call this procedure from within another procedure?
> >
> 
> Yes you can.
> 

I'm mystified by the other complicated replies here or did I misunderstand
the question? To clarify my previous reply, here's a simple test program
that illustrates calling a parameterless exported procedure (Edit.Open) from
another procedure:

MODULE Command;

IMPORT Edit;

PROCEDURE Run*;
BEGIN
  Edit.Open
END Run;

END Command.

Regards,
Chris



More information about the Oberon mailing list