POINTER TO type

Post Reply
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

POINTER TO type

Post 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
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Re: POINTER TO type

Post 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.
Post Reply