Feature #50

Add support for COSMOS-type method plugs

Added by Phil Garcia over 1 year ago. Updated about 1 year ago.

Status:Closed Start date:03/14/2012
Priority:Normal Due date:
Assignee:Phil Garcia % Done:

0%

Category:Compiler Spent time: -
Target version:1.6
Difficulty:

Description

These method plugs patch external calls without having to modify the source assemblies.

These plugs would reside in their own assembly.

This is part of the COSMOS/MOSA collaboration.

Here's an example of a COSMOS plug:

[Plug(Target = typeof(global::System.Math))]
public class MathImpl
{
    public static double Abs(double value)
    {
        if (value < 0)
        {
            return -value;
        }
        else
        {
            return value;
        }
    }
}

More information is available here C# Open Source Managed Operating System - Intro to Plugs

MOSA implementation can use these plug method declaration instead to reduce implementation complexity:

[PlugMethod(@"System.Math.Abs, corlib")]

Subtasks

Unit Test #79: Add unit tests for method plugsNew

Associated revisions

Revision 8f33c5b6
Added by Phil Garcia about 1 year ago

- Implemented Method Plugs (closes #50)

History

Updated by Phil Garcia over 1 year ago

  • Target version changed from 1.4 to 1.6

Updated by Phil Garcia about 1 year ago

  • Description updated (diff)
  • Assignee set to Phil Garcia

Updated by Phil Garcia about 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF