[Interest] is it possible to add C# compiler?
Jason H
jhihn at gmx.com
Mon Jun 7 16:08:42 CEST 2021
> Sent: Monday, June 07, 2021 at 7:48 AM
> From: "David Skoland" <david.skoland at qt.io>
> To: "David M. Cotter" <dave at kjams.com>
> Cc: "Qt Interest" <Interest at qt-project.org>
> Subject: Re: [Interest] is it possible to add C# compiler?
>
> Hi,
>
> Generally, no. I believe the reason you can compile Objective C on MacOS with Qt is clang’s ability to link ObjC to C++ libraries (Qt). I haven’t heard of MSVC or any other compiler which can do the same with C#, which might already be tricky since C# isn’t typically compiled to native assembly.
>
> > On 5 Jun 2021, at 20:07, David M. Cotter <dave at kjams.com> wrote:
> >
> > I just saw a message go by about someone adding another compiler to Qt Creator?
> >
> > I know that Qt Creator can compile Objective C on mac.
> >
> > Made me wonder if it could be possible to add a compiler for C# on windows?
> >
> > Or is that already there and i don't know about it?
> >
> > -dave
C# (and any other .NET assembly) can be interacted with using the CLR Handle type ('^' vs C's '*'), which gives the necessary indirection for the .NET GC(compaction) to function.
However as stated, Mixed-languge files (ObC/C++, ending in .mm) are unique, For the .NET CLR, it's one language, on compiler per file, so you'll still have C# and cpp files, just those .cpp files can have ^ in them.
More information about the Interest
mailing list