OOlib icon indicating copy to clipboard operation
OOlib copied to clipboard

A nimble package for object-oriented programming

Results 20 OOlib issues
Sort by recently updated
recently updated
newest added

Hello! I'm glad you added this feature, but currently this work only for this case: ```nim import oolib protocol Launchable: proc prepareForLaunch() proc launch() proc stop() protocol HotCompilable: proc configureReloading()...

```nim class Dollar(distinct int): proc `+=`(other: Dollar) {.varType.} = self = self + other ``` is converted to ```nim type Dollar = distinct int proc `+=`(self: var Dollar, other: Dollar)...

Type: Improve
Status: Available

```nim protocol SomeProtocol: proc implemented(x: int) = return x class SomeClass impl SomeProtocol: discard let some = SomeClass.new() some.implemented(5) ```

Type: Improve
Status: Inactive (Abandoned)

Type: Improve
Type: Modification
Status: Available

Remake class macro for 1.0

Status: Available
Type: ⚠️BREAKING CHANGE⚠️

```nim class A: var a: int # referring to member variable `a` with {.initial.} var b {.initial.} = self.a ``` is roughly the same as ```nim class A: var a:...

Type: Improve
Status: Available

```nim protocol Fruit: proc `new`(title: string, price: int) class Apple: proc `new`(title: string, price: int) = discard ```

Type: Improve
Status: Available

```nim class pub A: var a*: int proc a*(value: int) {.setter.} = self.a = value ``` convert to below ```nim type A* = ref object a: int proc a*(self: A):...

Type: Improve
Status: Available

Make constructor stricter.

Status: Inactive (Abandoned)