From: Chris Burrows <chris@cfbsoftware.com> Date: Mon, 14 Jan 2019 07:16:50 +1030
Which version of Oberon are you using?
At the time, it was Active Oberon, working in the Oberon sub-system in A2.
Be aware that in Oberon-07 variables are now exported as read-only.
Thanks. Forgot about that. Fixed in V5 using procedure variables. https://en.wikibooks.org/wiki/Oberon/V5 Seems devious but it compiles. Out.Open works but haven't tested further. I'm interested to read any comments about the use of procedure variables. From: =?utf-8?Q?J=C3=B6rg_Straube?= <joerg.straube@iaeth.ch> Date: Tue, 15 Jan 2019 01:44:51 +0100
... can not be compiled with an Oberon-07 compiler as you are using contexts („IN Oberon“).
The first repair after moving into V5.
Officially, LONGREALs are not supported in Oberon-07. So you would have to delete the procedures handling LONGREALs. Inofficially the compiler will accept them, but will treat them like REALs.
Made the Active Oberon procedures redunant to the Oberon-07 procedures. Thanks, ... Lyall E. -- Message composed and transmitted by software designed to avoid the complication, overhead and vulnerability of antivirus software. 123456789 123456789 123456789 123456789 123456789 123456789 123456789 Tel: +1 360 639 0202 +1 http://easthope.ca/Peter.html Bcc: peter at easthope. ca
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of peter@easthope.ca Sent: Tuesday, 15 January 2019 2:51 PM To: oberon@lists.inf.ethz.ch Subject: [Oberon] Re (2): The Out module.
Be aware that in Oberon-07 variables are now exported as read-only.
Thanks. Forgot about that. Fixed in V5 using procedure variables. https://en.wikibooks.org/wiki/Oberon/V5 Seems devious but it compiles. Out.Open works but haven't tested further. I'm interested to read any comments about the use of procedure variables.
It does not look 'as simple as possible' to me ;-) The extra complexity might be justified if there was a noticeable difference in code size or execution time but that is not the case. If my calculations are correct the number of instructions executed by Append is identical for both the procedure variables version and the simpler boolean variable version. However, the total code size of the procedure variable version is 15% larger than the boolean variable version. Regards, Chris Chris Burrows CFB Software http://www.astrobe.com/RISC5
Lyall Procedure variable is an overkill in this example. Exported BOOLEAN is fine. But you need a procedure to set it, as you can't set an exported variable in Oberon-07 anymore. br Jörg -----Original Message----- From: Oberon <oberon-bounces@lists.inf.ethz.ch> On Behalf Of Chris Burrows Sent: Tuesday, January 15, 2019 11:23 AM To: 'ETH Oberon and related systems' <oberon@lists.inf.ethz.ch> Subject: Re: [Oberon] Re (2): The Out module.
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of peter@easthope.ca Sent: Tuesday, 15 January 2019 2:51 PM To: oberon@lists.inf.ethz.ch Subject: [Oberon] Re (2): The Out module.
Be aware that in Oberon-07 variables are now exported as read-only.
Thanks. Forgot about that. Fixed in V5 using procedure variables. https://en.wikibooks.org/wiki/Oberon/V5 Seems devious but it compiles. Out.Open works but haven't tested further. I'm interested to read any comments about the use of procedure variables.
It does not look 'as simple as possible' to me ;-) The extra complexity might be justified if there was a noticeable difference in code size or execution time but that is not the case. If my calculations are correct the number of instructions executed by Append is identical for both the procedure variables version and the simpler boolean variable version. However, the total code size of the procedure variable version is 15% larger than the boolean variable version. Regards, Chris Chris Burrows CFB Software http://www.astrobe.com/RISC5 -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
participants (3)
-
Chris Burrows -
Jörg -
peter@easthope.ca