[Oberon] Oberon for a C++ user.
Skulski, Wojciech
skulski at pas.rochester.edu
Sat Oct 1 03:14:06 CEST 2016
Chris:
I wanted to create a possible example, so I downloaded LinzV4 from
ftp://ftp.ssw.uni-linz.ac.at/pub/Oberon/Windows/win95-NT/.
I unpacked according to instructions and the system traps on
Documents.Open Welcome.Text. I cannot copy-paste the trap because
attempts of doing so cause the next traps.
It is surprising because I have a working LinzV4 on a Windows 7
computer at work. It runs OK under Windows 7 64 bit. But here at home it
traps under Windows XP 32 bit.
I am not sure where I got the working LinzV4 copy from. Perhaps the one at Linz
is an old leftover? Any suggestions where to a working LinzV4?
Wojtek
________________________________________
From: Oberon [oberon-bounces at lists.inf.ethz.ch] on behalf of Chris Burrows [chris at cfbsoftware.com]
Sent: Friday, September 30, 2016 8:29 PM
To: ETH Oberon and related systems
Subject: Re: [Oberon] Oberon for a C++ user.
Yes, of course it does - that is something completely different. 'trouble' has not yet been defined so it fails even though the module is still loaded. A simpler way of illustrating that particular problem in Component Pascal would be:
MODULE TempProcvar;
TYPE
ParamProc = PROCEDURE ( p: INTEGER );
VAR
trouble : ParamProc;
PROCEDURE Run*;
BEGIN
trouble(99)
END Run;
END TempProcvar.
Any example that illustrates the problem under discussion would have at least two modules.
>
> From: aubrey.mcintosh at gmail.com [mailto:aubrey.mcintosh at gmail.com] On
> Behalf Of Aubrey.McIntosh at alumni.utexas.net
> Sent: Saturday, 1 October 2016 9:36 AM
> To: chris at cfbsoftware.com; ETH Oberon and related systems
> Subject: Re: [Oberon] Oberon for a C++ user.
>
> This snipped compiles under Component Pascal 1.7-rc1, and traps with
> a nil procedure call.
>
> MODULE TempProcvar;
>
> TYPE
> ParamProc = PROCEDURE ( p: INTEGER );
>
> VAR
> trouble* : ParamProc;
>
> PROCEDURE UseProc ( method: ParamProc );
> BEGIN
> method( 42 )
> END UseProc;
>
> PROCEDURE Doit*;
> BEGIN
> UseProc ( trouble )
> END Doit;
>
> END TempProcvar.
>
>
>
> On Fri, Sep 30, 2016 at 6:11 PM, Chris Burrows
> <chris at cfbsoftware.com> wrote:
> > -----Original Message-----
> > From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
> > St phane Aulery
> > Sent: Friday, 30 September 2016 6:19 AM
> > To: ETH Oberon and related systems
> > Subject: Re: [Oberon] Oberon for a C++ user.
> >
>
> I'd like to see actual example code that illustrates the problem as I
> am not convinced it is a problem - at least not with the latest
> version of Oberon.
--
Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.inf.ethz.ch_mailman_listinfo_oberon&d=CwICAg&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=uUiA_zLpwaGJIlq-_BM9w1wVOuyqPwHi3XzJRa-ybV0&m=-oTkayruA-naPZVyTWMvwy9RuJ6HxJHgpWpIvTjwSaQ&s=WdLI9lH-29z6INrxOiKeTUvSxoUdNMAsXixFxKzMMAA&e=
More information about the Oberon
mailing list