Skip to content

CObj: add optional warning if method returning a <: CObject doesn't use an implicit wrapper #19

@jokade

Description

@jokade

As a best practice, methods returning a wrapped C object should always take an implicit wrapper, i.e.

def getFoo()(implicit w: CObjectWrapper[Foo]): Foo = extern

instead of

def getFoo(): Foo = extern

To help enforce this policy, it should be possible to activate warnings/errors if it is broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions