Category:EC: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(12 intermediate revisions by 4 users not shown)
Line 1:
=={{headerlanguage|eC}}==
|strength=weak
|safety=unsafe
|express=explicit
|compat=nominative
|checking=both
|parampass=both
|gc=no
|LCT=yes}}
eC (Ecere C) is an [[object-oriented]] language derived from and compatible with [[derived from::compatible with::C]] designed and developed by Ecere Corporation. It aims at being fast, light and easy to write.
 
It is supported by a cross-[[platform]] runtime [[Ecere|library]] including its own [[GUI]] toolkit, 2D/3D graphics engine as well as networking support.
[[Image:EcereSDK.png|thumb|left|A screenshot of the Ecere IDE and samples, running on Linux.]]
 
The Ecere SDK is completely free and includes a full-featured [[Ecere IDE|Integrated Development Environment]] as well as a compiling tools for the eC language.
eC (Ecere C) is an object-oriented language derived from and compatible with C designed and developed by Ecere Corporation. It aims at being fast, light and easy to write.
 
It is supported by a cross-platform runtime library including its own GUI toolkit, 2D/3D graphics engine as well as networking support.
 
The Ecere SDK is completely free and includes a full-featured Integrated Development Environment as well as a compiling tools for the eC language.
 
''Some of eC Features''
 
* Full C compatibility (Only exception: few additional reserved keywords such as 'class')
* Object -oriented class definitions supporting single inheritance
* Per instance virtual methods
* Import feature removing the need for header files
Line 21 ⟶ 26:
 
== Sample Code ==
''Hello, World!! in eC''
 
'''class''' HelloApp : Application
{
'''void''' Main()
{
printf("Hello, World!!\n");
}
}
 
''Properties & Conversions in eC''
 
Line 54 ⟶ 49:
pen.color = ColorLab { 53, 79, 66 };
pen.color = ColorCMYK { 0, 100, 100, 0 };
 
''Hello, World!! in a GUI''
 
<pre>import "ecere"
 
class HelloForm : Window
{
text = “Hello, World!! Application";
hasClose = true;
hasMaximize = true;
hasMinimize = true;
size = { 640, 480 };
 
void OnRedraw(Surface surface)
{
surface.WriteTextf(10, 10, "Hello, World!!");
}
}
 
HelloForm helloForm {};</pre>
 
==External links==
*[http://wwwec-lang.ecere.comorg/technologies.html#eCoverview Description of eC language on official web site]
*[http://www.ecere.comca/ Ecere Corporation's web site]
*[http://zerotri.net/wiki/doku.php?id=ecere_review Review of eC language and SDK by zerotri]
*[http://freshmeat.net/projects/ecere/ Ecere SDK project on FreshMeat]