Naming conventions

Mark Wieder mwieder at ahsoftware.net
Sun Jul 3 12:10:48 EDT 2005


Dennis-

To add to your discussion of conventions:

I've got a standard format for commenting my handlers that looks like

--------------------------------------------
-- HandlerName
--
-- Description of this block of code
-- Uses: any global values used or external variables modified
-- Returns: description of return value for functions
-- Usage:
--   HandlerName parameters
--------------------------------------------

as in:

--------------------------------------------
-- assertNotEqual
--
-- Causes a runtime error in the IDE if the
-- arguments are not the same.
--
-- Usage:
--
-- on MyTest pValue
--   assertNotEqual pValue, zero
--   put 1000 / pValue into gSomeGlobal
-- end MyTest
--------------------------------------------

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list