[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::decladebug

Title:Digital Ladebug debugger
Moderator:TLE::LUCIA
Created:Fri Feb 28 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:969
Total number of notes:3959

875.0. ""func" vs. "function"" by DECC::MJHANS (Matthew Hanselman, DEC C) Mon Mar 10 1997 15:51

    Requiring the user to use the command "func" is anti-intuitive.  I
    tried typing the obvious "function", and was convinced that ladebug
    provided no way of overriding a class scope.  This is especially so,
    given the last line of "help" for "class".
    
    It wasn't until I typed a general "help" & grep'ed for "scope" that I
    came across "func".  Perhaps cross-referencing ladebug help like UNIX
    does it man pages would help as well.
    
    	     						- Matt
    
    (ladebug) function main
    function main
           ^
    Unable to parse input as legal command or C++ expression.
    (ladebug) help class
    
            class <classname> 
    
    For C++: 
    
    Use the 'class' command without an argument to display the current 
    class scope.  Specify an argument to change the class scope.  After 
    the class scope is set, refer to members of the class by omitting 
    the class name prefix. 
    
    Setting the class scope nullifies the function scope. 
    (ladebug)
T.RTitleUserPersonal
Name
DateLines
875.1TLE::LUCIAhttp://asaab.zko.dec.com/~lucia/biography.htmlTue Mar 11 1997 13:506
We really ought to change it to "function" and provide a built-in alias for
"func"...

Meanwhile, you can do the opposite, if you like.

Tim