how frequently does the letter "r" appear in:
while exploring the built-in tables in murgalua, i discovered that there are several parts of fltk that are not documented...classes, methods, constants, and functions. so i whipped up this tool to let me quickly run down through various tables, starting with _g.
it needs work, since it does occasionally crash, and it doesn't really do anything other than display the contents of a selected table (tables are displayed in bold font).
syntax highlighting according to the object type.
you don't need to click the button anymore (it's still there because i have other plans for it).
functions now give a little bit of info (not much, but it's all i know how to get at this time).
navigate backward rather than having to start back at _g every time.
try to figure out how to provide more info about selected functions.
this post was last modified: 09-07-2007 01:35 pm by mikshaw.
much better sorting of the table: rather than sorting the table itself (which doesn't really work with string indexes) it uses a temporary table to presort the strings that will eventually go into the browser.
i still want to try to figure out if i can get more information about selected functions, but so far it doesn't look promising. ideally i would like to be able to display the contents of the functions, which i think should be possible at least with the lua (non-c) functions.
i tried adding "thread" and "boolean" to the syntax highlighting, but there seems to be an issue when separating those two types (only one or the other displays). i'll need to look into that in the future.
my_level[my_depth]=current_table --set a table to return to with "back"
-- is there a way to get more useful info?
not meaning to toot, but this tool has provided me with some information over the last few days that i would otherwise have had no idea about.
instead they are supplied as tables on the top level.
for example, i had for the longest time assumed that fl_tooltip was not availabe in murgalua because i kept getting an error stating that fltk.fl_tooltip was a nil value. now that i look at the tables in _g i see that fl_tooltip is available, but just not in the fltk table.
there are at least a few things like this, and additional classes that aren't covered in the fltk docs.
made a couple of changes based on bill's feedback.
the which_is_it function no longer crashes, although the information it displays seems to be incorrect. i'll need to work on that more later.
multiline strings are now displayed on a singe line.
clicking a userdata entry will display its metatable.
making everything local keeps the stuff created in this script from appearing in _g, so i guess this version should show only what is provided in murgalua.
-- for multiline strings, pad numbers with zeros for proper sorting.
thanks for the great tool!!!
user
The total number of "r"s in that passage is 110.
assistant