Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

nested procedures (Miscellaneous)

posted by marcov, 03.03.2020, 10:16

> > More complex cases of accessing parent parameters with multiple levels
> and
> > recursion (basically writing a recursive descent parser as nested procs)
> > was said to be big dividing line.
>
> Oberon-07 has simpler data support in nested procedures: (only) strictly
> local or strictly global. AFAIK, this is comparable to standard C (not GCC
> extensions). It's one of many simplifications made in that dialect. It
> presumably does simplify stack management quite a bit. I know you disregard
> Oberon overall, but ....

Yes, proves again its uselessness, even TP can do better.

But as I said in OO languages it might be used less, since your method variables (aka function pointers) already have some context, and less local functions are used, since methods in general share context via the object.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 269 users online (0 registered, 269 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum