All Content
Blogs
Forums
News
Tutorials
Log In
Join
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
17
users logged in
Proud partner of GDC 2025
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Support GameDev.net with a monthly
GDNet+ subscription
!
Follow Us
Chat in the
GameDev.net Discord!
Back to Engines and Middleware
Advertisement
Making LUA more OO-like
Engines and Middleware
Programming
Started by
Prozak
February 05, 2004 09:03 PM
0
comments, last by
Prozak
21 years, 1 month ago
Prozak
Author
899
February 05, 2004 09:03 PM
Hi all, can i make lua code more OO-like, so that: kitchen_fork(USE_ON_FOOD); ...i can do: kitche.fork(USE_ON_FOOD); ? I''m using LUA 5.0 under VS C++ .Net... Thanks for any tips on this...
[
Hugo Ferreira
][
Positronic Dreams
][
Colibri 3D Engine
][
Entropy HL2 MOD
]
[
Yann L.
][
Enginuity
] [
Penny Arcade
] [
MSDN
][
VS RoadMap
][
Humus
][
BSPs
][
UGP
][
NeHe
]
"I say we take off and nuke the entire site from orbit. It''s the only way to be sure."
[
Mercury - An OS on your Browser
|
Mercury on YouTube
]
Cancel
Save
evolutional
1,397
February 05, 2004 10:36 PM
A good start point
btw: LUA tables can be referenced by name, creating psuedo-classes. eg: kitchen["fork"] is accessible via kitchen.fork (the latter is syntaxical sugar)
[edited by - downgraded on February 5, 2004 11:37:54 PM]
Cancel
Save
This topic is closed to new replies.
Advertisement
Popular Topics
C++ game implementation
For Beginners
Which Engine Is This?
Engines and Middleware
A survey about game development
GDNet Lounge
click and drag sprite
For Beginners
Support for template functions is now implemented in 2.38.0 WIP
AngelCode
How to calculate distance map
Artificial Intelligence
Advertisement
Recommended Tutorials
The One: A Singleton Discussion
General and Gameplay Programming
Everybody Conga! Well maybe not everybody...
Game Design and Theory
Introduction to Pointers, Structures and Linked-Lists Part 1
General and Gameplay Programming
Programming a pong game in ANSI C
General and Gameplay Programming
2008 Austin GDC Coverage Part 2
Event Coverage
Advertisement
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2025 GameDev.net, LLC
Back to Top