Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-6810

Return value with void function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.02/01
    • Fix Version/s: 6.10/00
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      any

    • Development:

      Description

      I am not sure if it is valid or not, but a such function compiles with cling:

      void f() {
         TCanvas *c = new TCanvas();
         return c;
      }

        Attachments

          Activity

            People

            Assignee:
            axel Axel Naumann
            Reporter:
            couet Olivier Couet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: