Hi,

I had a quick glance at the nim language design and wrote about 10 lines of nim 
in vscode, I'm very surprised to see this design:
    
    
    type
      # Define a base class
      Animal = ref object of RootObj
        name*: string
    
    proc `=destroy`(a: var Animal) =
      echo "Destroying Animal: ", a.name
    
    
    Run

Maybe this is the first programming language that uses a __text string__ (I 
guess it's a text string, maybe I was wrong) of `=destroy` as a keyword!

is it possible just to use some keywords to do the same, like `delete` or 
`__del__`?

Reply via email to