larcenists / larceny

Larceny Scheme implementation
Other
202 stars 32 forks source link

Ability to create CLR/C# classes from Common Larceny #19

Open larceny-trac-import opened 11 years ago

larceny-trac-import commented 11 years ago

Reported by: tov on Mon Feb 13 18:52:11 2006 We need to be able to create and export CLR classes from within Scheme code in Common Larceny. My inclination is to steal C# syntax and dress it up in S-expressions.

larceny-trac-import commented 11 years ago

Author: pnkfelix Note that Felix has written rough code illustrating how to do this (via Reflection) in two places:

The CLR Reflection mechanism actually provides a way for one to save generated code to a file (if one generates it via an appropriately constructed dynamic assembly, that is). So this might provide a reasonable foundation atop which someone to build a domain specific language for defining classes and extensions.