Lucy
  1. Lucy
  2. LUCY-89

Tighten Clownfish method invocation type checking

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Clownfish, Core, Perl bindings
    • Labels:
      None

      Description

      Clownfish method invocation is implemented using C static inline functions.
      The first argument to these functions is the object itself, which up till now
      has been cast to "const void*". It is better to have the first argument match
      the type of the invoker, so that the C compiler will issue warnings if you try
      to invoke a method on an inappropriate object, e.g. "PriQ_Pop(hash)".

      1. tighten_types.diff
        4 kB
        Marvin Humphrey
      2. fallout.diff
        52 kB
        Marvin Humphrey

        Activity

        Marvin Humphrey created issue -
        Marvin Humphrey made changes -
        Field Original Value New Value
        Attachment tighten_types.diff [ 12428940 ]
        Marvin Humphrey made changes -
        Attachment fallout.diff [ 12428941 ]
        Marvin Humphrey made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Marvin Humphrey
            Reporter:
            Marvin Humphrey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development