Menu

#10 Bad code for operations on protected types returning types

closed
Generation (37)
5
2012-09-24
2005-07-02
Mark Gawler
No

Types which are returned by operations on protected
types are declared after the Protected type declaration
if the type name is alphabetically after operation name.

Discussion

  • Simon Wright

    Simon Wright - 2005-07-04

    Logged In: YES
    user_id=917025

    This is caused by (a) misspelling 'return' as 'result', (b)
    treating it as an element when it's an attribute.
    Much less likely to show up if some of the protected type's
    operations have parameters.

     
  • Simon Wright

    Simon Wright - 2005-07-04

    Logged In: YES
    user_id=917025

    ColdFrame bug # 0317.

     
  • Simon Wright

    Simon Wright - 2005-07-04

    Logged In: YES
    user_id=917025

    Now fixed & updated regression test.

     

Log in to post a comment.