Category : Tutorials » CSharp Programming
. concerning traits and statically typed languages like CSharp . focus of this work is on CSharp most of the results are directly . of CSharp, con .
Download File
Free PDF eBooks Download
Tutorials
CSharp Programming
Content Summary :
The main focus of this work is on identifying interesting and important aspectsof introducing traits to CSharp. We also identify required and optional featuresfor statically typed languages as well as conflict situations. The implementationpresented in this paper is a simple prototype (a preprocessor) based on the traitflattening property [9]. It is meant to be a study case for a clean implementation. The main problem concerning traits and statically typed languages like CSharp is about typing traits and to keep the ability to share code easily. Many ap-proaches already exist in theory. This practical work contributes to the researchabout traits by presenting a simple prototype, showing the possibilities and dif-ficulties in integrating traits in statically typed languages. Although the focus of this work is on CSharp most of the results are directly applicable to other typed object-oriented languages. The implemented “traitflattening framework”, kept mostly language independent, would also work formost other c-like languages (with only slight modification). Section 2 shortly introduces traits. The following sections cover the basics about CSharp, give a short overview about a first dirty-prototype done in CSharpitself and contain some more extensive descriptions, results and practical researchby doing the final implementation using Smalltalk.