Skip to content

Singleton example creates 2 of the same singleton #1

@ohthepain

Description

@ohthepain

Ideally the singleton example should implement the singleton pattern from the book 'Design Patterns'.

It should definitely not create 2 objects of the same class. That's just surreal.

local class = Class() local a = class.new() local b = class.new() a.name = "Singleton Pattern"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions