Richard
Yes, I fully understand the concept.
My question was rather: is it really needed?
I mean, the difference between
collect.forEach(obj, DO statements END);
with a block construct or
WHILE collect.forEach(obj) DO statements END;
Is not so huge, is it?
br
Jörg
>> Am 08.04.2020 um 20:02 schrieb Richard Hable <informujo(a)aon.at>:
>>
>> On 07.04.20 22:38, rochus.keller(a)bluewin.ch wrote:
>> @ Richard Hable
>> Thanks for the link. The concept actually dates back to Simula 67. Dahl and Nygaard were inspired by Algol 60 blocks and advanced it to classes which essentially are dynamic blocks.
>
> The idea of passing blocks of statements as parameters is, of course,
> not new at all. The paper actually cites Wirth’s rather obscure “A
> Generalization of Algol” proposal from 1963 as an ancestor:
>
> https://dl.acm.org/doi/abs/10.1145/367593.367619
>
> And probably LISP had such a feature even earlier.
>
> However, the proposed solution is a lot simpler than that: it works
> without dynamic memory allocation, higher-order functions, captured
> variables etc.
>
> The passed blocks are executed in the frame of the calling procedure,
> and share their variables with the iterator procedure via
> call-by-reference (“var”) parameters. Hardly any extensions are needed
> to the programming language and compiler.
>
> Richard
>
>
>
> --
> Oberon(a)lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
@ Richard Hable
Thanks for the link. The concept actually dates back to Simula 67. Dahl and Nygaard were inspired by Algol 60 blocks and advanced it to classes which essentially are dynamic blocks.
Best
R.
_______________________________
From: Richard Hable
Sent on: Tue, 07 Apr 2020 22:21:44 +0200
To: oberon(a)lists.inf.ethz.ch
Cc:
Subject: [Oberon] Block objects for Oberon
Hello all
Due to current events, the ACM Digital Library is now accessible for
free. This also includes many articles related to the Oberon programming
language!
My favorite one is “Treating Statement Sequences as Block Objects” by
Hanspeter Mössenböck, in which he describes a simple extension to
Oberon-2 which allows implementing iterators (and more!) in an amazingly
efficient and elegant way:
https://dl.acm.org/doi/abs/10.1145/142137.142157
Block objects (statement parameters) also appear in Wirth and Hoare’s “A
Contribution to the Development of ALGOL”:
https://dl.acm.org/doi/abs/10.1145/365696.365702
Richard
Hello All,
> What about the source code? Are there any?
BootManager.Asm, BootManager.Mod, BootManager.Text and
BootManager.Tool are now in the wikibook.
https://en.wikibooks.org/wiki/Oberon/A2#Sources,_Tools_and_Configuration_Te…
Those copies serve primarily for convenient instructional access.
They are not necessarily identical to the latest revision at the ETHZ
or elsewhere.
Hypothetically, executables BootManager.Bin, BootManagerMBR.Bin and
BootManagerTail.Bin can be Base64 encoded and put in the book as text
files. In my view this is not a good choice. Currently the best
place for the executables is a versioning repository at the ETHZ.
I understand that not everyone can maintain a working copy of a big
repository. For those users, an appropriate secondary location for
executables is Sourceforge. It has archives for A2 and for S3. If
someone can put the executables there, thanks.
The objective of the wikibook is to explain technical details in a
readily accessable and comprehensible way. Please notify me of any
error. More strictly, please notify me of any source of confusion.
Comments and suggestions are always welcome.
The world is at war with a virus. People are dying. In many places
the death rate is increasing. Please do whatever you can to help.
Thanks, ... P. Lyall Easthope
--
https://en.wikibooks.org/wiki/Medical_Machineshttps://en.wikibooks.org/wiki/Oberon
Tel: +1 604 670 0140 Bcc: peter at easthope. ca
Pablo,
> I think that a copy of Oberons legacy codes in github, gitlab and
> sourceforge could be convenient in order to use it as voluntary or
> community archives.
Thanks for your reply.
> As for Wikibooks, I don't know if we could use it also for archiving
> purposes of legacy codes, but at least it could be cited as text in the
> pages like an appendix with the code in some printed books.
After about 8 hours of editing, Andre's Boot Manager document is now
available here. Editing was required to recover original format and
repair links.
https://en.wikibooks.org/wiki/User:PeterEasthope/sandbox#Summary_of_features
In my sandbox until ready for the Oberon book.
If you can spare the time to read it, any comments will be very welcome.
Thanks! ... P.
--
https://en.wikibooks.org/wiki/Medical_Machineshttps://en.wikibooks.org/wiki/Oberon
Tel: +1 604 670 0140 Bcc: peter at easthope. ca