The manual suggest adding the F (field) prefix for properties to use with 
getter/setter: 
[https://nim-lang.org/docs/manual.html#procedures-properties](https://nim-lang.org/docs/manual.html#procedures-properties)
    
    
    type
      Info* = ref object of RootObj
        Flevel: int
        Ftitle: string
    
    proc `level=`*(info: var Info, level: int) {.inline.} =
      info.Flevel = level
      info.Ftitle = "Level " & $(level)
    
    var info: Info
    new info
    
    info.level = 5
    
    echo info.Ftitle
    
    

Reply via email to