[Kde-bindings] KDE/kdebindings/csharp

Arno Rehn arno at arnorehn.de
Fri Dec 5 18:03:12 UTC 2008



On Friday 05 December 2008 18:48:23 Richard Dale wrote:
> On Friday 05 December 2008 17:35:28 Arno Rehn wrote:
> > * Add support for compiling sources at runtime. Supported languages for
> > now: C#, Boo, Nemerle, VB.NET (this one doesn't quite work yet - the
> > compiler seems to be buggy).
> >   The first non-blank line in the mainscript file needs to be a comment
> > in the form // language:csharp references:System.Xml sources:otherfile.cs
> > 'meta-comments' for different languages look equivalent. By default
> > references for qt-dotnet, kde-dotnet and plasma-dll are added. The
> > default language is C#, the default source file is only 'main'. So if a
> > script is written in C#, only needs qt, kde and plasma bindings and all
> > the code is contained in 'main', this comment can be omitted.
> >   For each source file a md5 hash is created so it's only recompiled if
> > the source was modified.
>
> Interesting commit! I didn't know this was possible. We could have a
> different plasmoid package type where the main file was a 'main.cs' source
> instead of a compiled 'main' assembly perhaps, instead of having to tell
> them apart at runtime?
I actually like it the way it is now - otherwise we would have to create a 
different package structure for each supported language.. (for main.cs, 
main.vb, main.n, main.boo etc.)
And differentiating between a binary assembly and a source file is rather easy 
at runtime with KMimeType.

-- 
Arno Rehn
arno at arnorehn.de



More information about the Kde-bindings mailing list