[Oberon] Treatment of parameter-less procedure type in ORP.Mod.txt
Chris Burrows
chris at cfbsoftware.com
Sat Jul 9 16:34:54 CEST 2016
> -----Original Message-----
> From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
> Srinivas Nayak
> Sent: Saturday, 9 July 2016 10:26 PM
> To: ETH Oberon and related systems
> Subject: [Oberon] Treatment of parameter-less procedure type in
> ORP.Mod.txt
>
> Dear All,
>
> I think ORP.Mod.txt missed to make
> ptype.nofpar := 0; in PROCEDURE ProcedureType() for parameter-less
> procedure types...
>
> Such as:
>
> TYPE Command* = PROCEDURE;
> BEGIN
> body (*initialize module*)
> END
>
>
> Not sure how Oberon compiler manages to get nofpar = 0!
> Or, I am missing it somewhere?
> Or, is there a chance of any memory chunk pre-initialized to 0 in
> Oberon?
>
ptype is a pointer variable of type ORB.Type. Pointer variables are
automatically initialised to zero when created using NEW. This
initialisation is performed by the procedure Kernel.New.
Regards,
Chris Burrows
CFB Software
http://www.astrobe.com
More information about the Oberon
mailing list