Const Variables
    Ali Çehreli 
    acehreli at yahoo.com
       
    Mon Apr  4 20:51:53 UTC 2022
    
    
  
On 4/4/22 13:37, H. S. Teoh wrote:
 >> I remember reading somewhat similar requests in the past: Assign to a
 >> variable freely but at some point say "no more mutation to this
 >> variable".
 > [...]
 >
 > It's not just "assign freely"; it's "assign once". Or rather, "assign
 > before the outside world sees it".
I understand. I just remembered somewhat related other requests.
 > In fact, now that I think of it, I wonder if this could actually be
 > implementable in the current language.
I am not surprised. :)
Ali
    
    
More information about the Digitalmars-d-learn
mailing list