Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 2 3 4 5 … 18 Next »
type() for metatables
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
type() for metatables
07-01-2021, 04:28 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: type() for metatables
The type() function isn't really the right place for user-defined type checking. I'd suggest either checking the metatable, or if you are protecting the metatable, use the __metatable value which getmetatable returns to hold your type name.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
type() for metatables - by The17thDoctor - 06-01-2021, 06:03 PM
RE: type() for metatables - by Person8880 - 07-01-2021, 04:28 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.