Skip to content

Make Lynx directly callable - #5

Open
onefiverdev wants to merge 1 commit into
Nicell:mainfrom
onefiverdev:feat/app-constructor
Open

onefiverdev wants to merge 1 commit into
Nicell:mainfrom
onefiverdev:feat/app-constructor

Conversation

@onefiverdev

Copy link
Copy Markdown

What does this feature do?

Allows Lynx instances to be created by calling Lynx() directly, while keeping the existing Lynx.new() constructor.

Example
Before:

local app = Lynx.new()

After:

local app = Lynx() -- or Lynx.new()

Changes

  • Added __call metamethod to Lynx
  • Lynx() delegates to Lynx.new()
  • Existing Lynx.new() behavior remains unchanged.

@onefiverdev onefiverdev changed the title Make the Lynx directly callable Make Lynx directly callable Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant