Page 1 of 1

POINTER TO type

Posted: Sun Jul 31, 2016 7:02 pm
by DGDanforth
On the Oberon mailing list Jorg Straube mentioned

Code: Select all

TYPE MemoryMapped = POINTER TO INTEGER;
in the context (I believe) of Oberon-7.

I would dearly love to have that capability in Component Pascal.

-Doug

Re: POINTER TO type

Posted: Sun Jul 31, 2016 10:19 pm
by DGDanforth
Ah,
Here is what Chris Burrows wrote with regard to that issue
It is not allowed in Oberon-07 based systems either e.g. Project Oberon
2013. Oberon-07 is more strict than Component Pascal as it limits the use of
pointer variables to record types. Pointers to arrays are not supported.
My wishful thinking remains. I would like to have

Code: Select all

TYPE myType = POINTER TO type
where type is any of the basic Component Pascal types.