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

Feature Request: SHOULD_OVERRIDE / VIRTUAL #364

Open
FluffyGhoster opened this issue Aug 9, 2023 · 1 comment
Open

Feature Request: SHOULD_OVERRIDE / VIRTUAL #364

FluffyGhoster opened this issue Aug 9, 2023 · 1 comment

Comments

@FluffyGhoster
Copy link

Basically, it would be cool to have a way to flag certain procs / variables so that you indicate that they must be overridden in derivate paths, eg:

/datum/food
    virtual var/taste = null

/datum/food/proc/effect()
    virtual

/datum/food/soup    <-- This should throw an error like "Not implementing proc: 'effect' "
    taste = "Sour"

/datum/food/spicynoodles    <-- This should throw an error like "Not implementing variable: 'taste' "

/datum/food/spicynoodles/effect()
    set_on_fire(usr)
@Andrew-Fall
Copy link

Abstract might be better than virtual given other language's use of the words

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants