[Oberon] Fwd: Oberon Splines.Mod

Tomas Kral thomas.kral at email.cz
Tue Apr 5 09:04:01 CEST 2016


Joerg,

Thank you, I already am at PO.Applications, studying compiler
implementation, code patterns now, just beginning more to understand
now.

Thing is, I wanted to recreate Graphics.smb and GraphicFrames.smb that
are missing on my RISC.img, running a compiler would produce new/old
symbols, as these are imported by Splines.Mod

Many thanks so far.


-- 
Tomas Kral <thomas.kral at email.cz>

On Tue, 2016-04-05 at 08:24 +0200, Jörg Straube wrote:
> If you change the IMPLEMENTATION of module A, you only have to unload
> the module (System.Free) and can use the new implementation
> immediately as the new code will be (re)loaded dynamically.
> 
> 
> But If you change the INTERFACE of module A, and compile with /s, an
> new symbol file is generated. All modules importing A have to be
> recompiled as well, as the interface to A (and hence the key in the
> symbol file) changed.
> 
> 
> --> if you changed the interface of GraphicFrames and generated a new
> symbol file, then the module Draw has to be recompiled as it imports
> GraphicFrames (that changed).
> You might repeat this process until the whole import chain is
> satisfied.
> 
> 
> /s is dangerous if you dont know the import hierarchy of the module
> you changed. Only use /s if you know what you do.
> 
> Jörg
> 
> Anfang der weitergeleiteten E‑Mail:
> 
> 
> > Von: Jörg Straube <joerg.straube at iaeth.ch>
> > Datum: 5. April 2016 um 07:56:02 MESZ
> > An: ETH Oberon and related systems <oberon at lists.inf.ethz.ch>
> > Betreff: Re: [Oberon] Oberon Splines.Mod
> > 
> > 
> > Tomas
> > 
> > 
> > as a recommendation to you: Study the book(s) explaining all aspects
> > of the Oberon OS.
> > Why there are symbol files, under what conditions a new symbol file
> > is needed and what the (sometimes dangerous) /s flag is doing:
> > http://www.inf.ethz.ch/personal/wirth/ProjectOberon/PO.Applications.pdf
> > chapter 12.6.2
> > 
> > Jörg
> > 
> > Am 04.04.2016 um 22:59 schrieb <thomas.kral at email.cz>
> > <thomas.kral at email.cz>:
> > 
> > 
> > > Hi,
> > > 
> > > I found Splines.Mod in the older Ceres-2 sources, and transferred
> > >  to RISC5.
> > > I also needed to recompile Grphics.mod and GraphicFrames.Mod as
> > > their symbol .smb files were missing on RISC.img.
> > > I also needed to remove old .rsc otherwise I was  getting 'bad
> > > keys' when loading DRAW application.
> > > 
> > > I wish to understand why, I guess this is to do with run-time
> > > loading, can you please explain to me?
> > > 
> > > I tested /s compile parameter that seems forbids a new symbol
> > > file, but my task was recreating original missing symbols based on
> > > original sources.
> > > 
> > > Many thanks in advance.
> > > Tomas
> > > 
> > > 
> > > ---------- Původní zpráva ----------
> > > Od: Jörg Straube 
> > > Komu: ETH Oberon and related systems 
> > > Datum: 25. 3. 2016 14:36:30
> > > Předmět: Re: [Oberon] Oberon Splines.Mod
> > > 
> > > Hi Tom
> > > 
> > > In NativeOberon there was the drawing suite called „Leonardo“.
> > > Have a look at the source code of LeoSplines.Mod
> > > 
> > > br
> > > Jörg
> > > > Am 25.03.2016 um 09:56 schrieb Tomas Kral :
> > > > 
> > > > Hi,
> > > > 
> > > > Now reading more about Draw.Tool, PO.Application chapters
> > > >  describe
> > > > basic shape primitives, a line, rectangle, circle, ellipse, also
> > > > Spline
> > > > curves.
> > > > 
> > > > Splines.Mod however seems missing on RISC.img, I also searched
> > > > old ETH
> > > > archives, and not found in sources there nor in Project Oberon
> > > > 2005.
> > > > 
> > > > It seems left as homework for a careful reader, right?
> > > > 
> > > > Cheers
> > > > 
> > > > -- 
> > > > Tomas Kral 
> > > > 
> > > > --
> > > > 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