Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7
    • Component/s: Compiler, Parser
    • Labels:
      None
    • Number of attachments :
      2

      Description

      Support making methods in boo that accept value types by reference.

      Perhaps using the "ref" and "out" syntax used by C#, unless there is some parsing conflict:

      def mymethod(ref param1 as int):
      ...

        Issue Links

          Activity

          Hide
          Doug H added a comment -

          Right, there is essentially no difference between out and ref in boo because boo initializes variables. I kept it there for those who want compatibility with C#. An attribute might work, but [Out] is used for COM interop. out params use a different kind of attribute.

          Show
          Doug H added a comment - Right, there is essentially no difference between out and ref in boo because boo initializes variables. I kept it there for those who want compatibility with C#. An attribute might work, but [Out] is used for COM interop. out params use a different kind of attribute.
          Hide
          Sorin Ionescu added a comment -

          I hope we won't add too many of these. I don't want Boo to become polluted for the sake of other languages.

          Show
          Sorin Ionescu added a comment - I hope we won't add too many of these. I don't want Boo to become polluted for the sake of other languages.
          Hide
          Doug H added a comment -

          byref10.patch fixes the nant test issues. All tests are working now.

          Show
          Doug H added a comment - byref10.patch fixes the nant test issues. All tests are working now.
          Hide
          Doug H added a comment -

          Removed out params.

          Show
          Doug H added a comment - Removed out params.
          Hide
          Rodrigo B. de Oliveira added a comment -

          Patch applied. Thanks, Doug!!!

          Show
          Rodrigo B. de Oliveira added a comment - Patch applied. Thanks, Doug!!!

            People

            • Assignee:
              Doug H
              Reporter:
              Doug H
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: