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 types of functions #14

Open
FoksVHox opened this issue Jun 11, 2020 · 2 comments
Open

Add types of functions #14

FoksVHox opened this issue Jun 11, 2020 · 2 comments
Labels
enhancement New feature or request futureaddition This may be considered in the future

Comments

@FoksVHox
Copy link
Collaborator

Add:
protected
public
private

Just like in PHP ;)

@JustPlayerDE
Copy link

that would be hard to implement in lua tho, maybe it can be done by simple adding a _ as a prefix for the names (so you know that you should not access it)

otherwise you may need some way to see where its called from and only return the stuff it the caller is for example in the table itself (which will reduce performance tho)

@FoksVHox FoksVHox mentioned this issue Jun 11, 2020
@NoSharp
Copy link
Member

NoSharp commented Jun 11, 2020

Adding Private and Protected in Lua is hard to enforce as you can always access the variables traversing the stack. This is something We might circle back to in the future.

@TomDotBat TomDotBat added enhancement New feature or request futureaddition This may be considered in the future labels Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request futureaddition This may be considered in the future
Projects
None yet
Development

No branches or pull requests

4 participants