generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Are there any benefits for using metatables? (over tables)

Previous Thread :: Next Thread 
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
11 Oct 2014 08:10 PM
If so, what are they?
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
11 Oct 2014 08:12 PM
Data manipulating

Useful for DataStore
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
11 Oct 2014 08:21 PM
There's no real use for metatables in Roblox.
But they are quite fun to play with!
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
11 Oct 2014 08:29 PM
Really? I always thought they were a bit useless... Now I have confirmation...
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
11 Oct 2014 09:40 PM
It seems people use metatables instead of tables for no reason, I wonder why.
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
11 Oct 2014 09:44 PM
@star; no.
have you ever seen anyone do this?

local tab = {};
setmetatable(tab, {1});
tab = getmetatable(tab);

that is just inefficient.
people use it so they can use metamethods.
there is no real use for that, though.
most people don't use metamethods and get along just fine.


semicolons are love, semicolons are life
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
11 Oct 2014 09:45 PM
builder*


semicolons are love, semicolons are life
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image