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, 08.03.2020, 23:08

> > > Oberon-07 has simpler data support in nested procedures: (only)
> strictly
> > > local or strictly global. AFAIK, this is comparable to standard C.
> >
> > Yes, proves again its uselessness, even TP can do better.
>
> You don't technically need it, and it simplifies implementations. Sure, it
> can be useful, but it's not mandatory. This is not a strict limitation but
> more of a design restriction (optimization?). You don't have to agree, but
> I think it's reasonable. You can't please everyone (although C++ certainly
> tries!). It's just yet another way of doing the same thing.

I think it depends how you see nested functions. If you only consider information hiding angles, it is probably fine.

You can nest functions as long as you can make them functionally like a global function, but nest them so that their name don't appear global scope.

But for me nested functions always have been more a way to divide up large procedures as a step between one big procedure and making them totally independent functions. And that requires parent local var and param support.

 

Complete thread:

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