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

Classes and objects in PAWN? #716

Open
DEntis-T opened this issue Aug 26, 2022 · 3 comments
Open

Classes and objects in PAWN? #716

DEntis-T opened this issue Aug 26, 2022 · 3 comments

Comments

@DEntis-T
Copy link

Maybe add classes and objects like in C++?

class TestClass
{
    new var;
    stock func() printf("Var: %i", var);
};

main()
{
    TestClass TestObj;
    TestObj.var = 1;
    TestObj.func();
}
@YashasSamaga
Copy link
Member

Related if not duplicate of #234

@DEntis-T
Copy link
Author

DEntis-T commented Oct 5, 2022

@YashasSamaga @Y-Less This isn't just about syntax and things, this is a recommendation for a completely new feature introducing classes and objects into Pawn.

@DEntis-T
Copy link
Author

DEntis-T commented Oct 5, 2022

Maybe in 3.10.11?

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