News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Enumerations
Author Message
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
Enumerations

Something that I keep forgetting to put in use....

The FLTK constants listed in enumerations.html file (and those that aren't listed) can be called with a number rather than a name.
This makes it more difficult to read a script, but makes it slightly smaller in size, maybe slightly less ram use but i couldn't say for sure.

For example, "widget:box(fltk.FL_UP_BOX)" could be written "widget:box(2)"

I believe this can be done for all FLTK constants.

I suppose this is why they're called "enumerations"?

06-07-2007 03:56 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Enumerations - mikshaw - 06-07-2007 03:56 AM
RE: Enumerations - iGame3D - 06-07-2007, 06:12 AM
RE: Enumerations - widged - 06-07-2007, 07:11 AM
RE: Enumerations - mikshaw - 06-07-2007, 08:16 AM
RE: Enumerations - widged - 06-07-2007, 08:23 AM
RE: Enumerations - mikshaw - 06-07-2007, 09:07 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: