Uploaded image for project: 'Lucy'
  1. Lucy
  2. LUCY-89

Tighten Clownfish method invocation type checking

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Clownfish, Core, Perl bindings
    • 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)".

      Attachments

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

        Activity

          People

            marvin Marvin Humphrey
            marvin Marvin Humphrey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: