[Oberon] Exporting pointers

Srinivas Nayak sinu.nayak2001 at gmail.com
Thu Dec 21 12:57:00 CET 2017


Thanks Jorg.
Now I see.

We have used exno for Procedures and Vars as well.


With thanks and best regards,

Yours sincerely,
Srinivas Nayak

Home: http://www.mathmeth.com/sn/
Blog: http://srinivas-nayak.blogspot.in/

On 12/21/2017 04:26 PM, Jörg wrote:
> An object has the field "expo" to tell the compiler whether an object
> (const, type, var) is exported or not.
> For types, only RECORDs can be extended in other modules, so the variable
> "exno" identifies the exported base RECORD. For other types this numbering
> is not needed.
> br
> Jörg
>
>
> -----Original Message-----
> From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of Srinivas
> Nayak
> Sent: Thursday, December 21, 2017 10:23 AM
> To: chris at cfbsoftware.com; ETH Oberon and related systems
> <oberon at lists.inf.ethz.ch>
> Subject: Re: [Oberon] Exporting pointers
>
> Dear Chris,
>
> You are correct.
> Many thanks for your valuable input.
>
> Now I wonder, what is the true purpose behind 'exno'?
>
>
> With thanks and best regards,
>
> Yours sincerely,
> Srinivas Nayak
>
> Home: http://www.mathmeth.com/sn/
> Blog: http://srinivas-nayak.blogspot.in/
>
> On 12/21/2017 12:50 PM, Chris Burrows wrote:
>>> -----Original Message-----
>>> From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
>>> Srinivas Nayak
>>> Sent: Thursday, 21 December 2017 4:21 PM
>>> To: ETH Oberon and related systems
>>> Subject: [Oberon] Exporting pointers
>>>
>>> Dear All,
>>>
>>> Looks like the current RISC-5 Oberon7 compiler allows only RECORDs to
>>> be exported, although language says a pointer type can also be
>>> exported. I see export number only incremented in case of RECORD type
>>> in ORP.Mod.
>>>
>>> Kindly let me know if I am mistaken.
>>>
>>
>> There must be some misunderstanding. Look at the Project Oberon source
> code
>> for examples. You shouldn't have to look very far - I counted about a
> couple
>> of dozen exported pointer types in fifteen different modules. There are
> nine
>> in Graphics.Mod alone.
>>
>> At the risk of stating the obvious, any other type (not just RECORDs or
>> POINTERs TO RECORDs), can be exported as well.
>>
>> Regards,
>> Chris Burrows
>> CFB Software
>> http://www.astrobe.com/RISC5
>>
>>
>>
>> --
>> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
>> https://lists.inf.ethz.ch/mailman/listinfo/oberon
>>
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
>
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
>


More information about the Oberon mailing list