History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-758
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Avishay Lavie
Reporter: Rodrigo B. de Oliveira
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Boo

Generic instance for internal types

Created: 16/Sep/06 03:36 PM   Updated: 13/Nov/06 03:55 PM
Component/s: Compiler
Affects Version/s: 0.7.6
Fix Version/s: 0.7.7

Time Tracking:
Not Specified

File Attachments: 1. Text File BOO-758.patch (455 kb)

Issue Links:
Related
 
dependent
 


 Description  « Hide
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...).



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Avishay Lavie - 16/Oct/06 02:43 PM
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.

Rodrigo B. de Oliveira - 16/Oct/06 03:07 PM
Niiiiiice.

Rodrigo B. de Oliveira - 27/Oct/06 01:05 PM
yeah! great job!