Boo
  1. Boo
  2. BOO-758

Generic instance for internal types

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.6
    • Fix Version/s: 0.7.7
    • Component/s: Compiler
    • Labels:
      None
    • Number of attachments :
      1

      Description

      import System.Collections.Generic

      class Person:
      [property(Name)] _name = ""

      l = List of Person()
      l.Add(Person(Name: "Eric Idle"))
      assert "Eric Idle" == l[0].Name

      Currently this will trigger an internal compiler error in
      ExternalGenericTypeDefinition.MakeGenericType. The solution is to
      implement a new IType class, GenericTypeInstance, which can behave
      like an instantiated generic type (this will also trigger need for
      GenericMethodInstance, etc...).

        Issue Links

          Activity

          Hide
          Avishay Lavie added a comment -

          I've made some nice progress here. Boo code can now declare, instantiate and call methods on MixedGenericTypes (generic types whose definitions are external but their parameters are internal). It's still very sketchy and missing a lot of the finer details, but it's certainly going in the right direction.

          Show
          Avishay Lavie added a comment - I've made some nice progress here. Boo code can now declare, instantiate and call methods on MixedGenericTypes (generic types whose definitions are external but their parameters are internal). It's still very sketchy and missing a lot of the finer details, but it's certainly going in the right direction.
          Hide
          Rodrigo B. de Oliveira added a comment -

          Niiiiiice.

          Show
          Rodrigo B. de Oliveira added a comment - Niiiiiice.
          Hide
          Rodrigo B. de Oliveira added a comment -

          yeah! great job!

          Show
          Rodrigo B. de Oliveira added a comment - yeah! great job!

            People

            • Assignee:
              Avishay Lavie
              Reporter:
              Rodrigo B. de Oliveira
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: