Mode equivalence worries
Jose E. Marchesi
jemarch@gnu.org
Tue Dec 30 18:31:39 GMT 2025
> Good day,
>
> Recently Jose has been helping me increase my understanding of "public" vs
> "private" (aleph0) declarations.
>
> One comment he made relates to mode equivalence, and this has got me
> thinking...
>
> Let's say there's a private mode Book declared in some module.
>
> What is stopping me from reading the source for Book and then declaring my
> own mode Mybook that is mode-equivalent to Book? And then using that to
> gain access to things that should remain private? Or to otherwise disrupt
> security?
Nothing. If your Mybook is mode-equivalence to Book, then it _is_ Book.
I fail to see the problem though.
>
> Chris Hermansen · clhermansen "at" gmail "dot" com
>
> C'est ma façon de parler.
More information about the Algol68
mailing list