Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for defining stringify overloads #1691

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

wixoaGit
Copy link
Member

@wixoaGit wixoaGit commented Mar 1, 2024

BYOND v515 added support for overloading the stringify operator:

/datum/proc/operator""()
    return "foo" // "[new /datum]" will give you "foo"

I added support for this on the compiler, though it won't ever get executed.

@boring-cyborg boring-cyborg bot added the Compiler Involves the OpenDream compiler label Mar 1, 2024
@github-actions github-actions bot added the size/S label Mar 1, 2024
@wixoaGit wixoaGit enabled auto-merge (squash) March 1, 2024 02:43
@wixoaGit wixoaGit merged commit 0dc640c into OpenDreamProject:master Mar 1, 2024
7 checks passed
@wixoaGit wixoaGit deleted the stringify_overloads branch March 25, 2024 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant