You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OOlib is a nimble package that can be used for object-oriented programming.
Installation
nimble install oolib
Usage
import strformat
import oolib
# add `pub` prefix to publish classclasspubPerson:
var
name*: string
age*: int=0# auto insert `self` as first argumentproc`$`*: string= fmt"<Person> name: {self.name}"prochappyBirthday*=inc self.age
# auto define constructorlet p =Person.new("myName")