Using closure in function scope to make "real" private class members

forkit forkit at gmail.com
Wed Jun 8 11:32:48 UTC 2022


On Wednesday, 8 June 2022 at 11:25:46 UTC, forkit wrote:
>
> Interesting that Scala has 'private[this]'
>
> https://stackoverflow.com/questions/9698677/privatethis-vs-private

oh.

https://docs.scala-lang.org/scala3/reference/dropped-features/this-qualifier.html



More information about the Digitalmars-d mailing list