[Mono-list] Mixing languages within

Kirk Marple kirk-public@agnostic-media.com
Thu, 9 Dec 2004 15:31:25 -0800

It makes sense if both languages (C# and HSPL) compiled to IL, and were both
processed by the CLR.

You'd have to make separate assemblies which referenced each other, you
couldn't do it inline in the same class.

Look at how IronPython compiles to IL, but it usable from any other .NET


-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of Colin JN Breame
Sent: Thursday, December 09, 2004 3:19 PM
To: mono-list@ximian.com
Subject: [Mono-list] Mixing languages within

I don't know what the .Net standard would have to say about this....

I would like to mix C# and (say) Hypothetical String Processing Language
(HSPL) and (say) Hypothetical Data Processing Language (HDPL) within the
same source code file. e.g.

class mixed {
     string normal_c_sharp_method() {
       string ret = null;

       <region is HSPL>
          some HSPL...modifying ret
       </region is HSPL>

       <region is HDPL>
          some HDPL...modifying ret
       </region is HDPL>

       return ret

Is this a crazy idea?

Mono-list maillist  -  Mono-list@lists.ximian.com