Skip to content

Generic collections #6

@charlie-sans

Description

@charlie-sans

Currently, in ObjectIR we have no way of making generic classes besides prefixing their types with Object.

infact, Object doesn't even exist as a concept inside ObjectIR at all despite the name clearly stating it does.

The idea for this issue is to provide a basis for constructing a way for Generics to be constructed.

for example:

module ListNode
class ListNode<T>
{
   public field contents: T[]
   method .cctor(val: T[])
  {
     ldarg val
     stfld contents
  }
}

this is one such idea on how a custom generic could be created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions