Is eC now support the c++? I want to use stl

6 views
Skip to first unread message

wtuben

unread,
Aug 11, 2008, 9:33:06 PM8/11/08
to eC Programming Language
Is eC now support the c++? I want to use stl

Jerome St-Louis

unread,
Aug 11, 2008, 10:45:10 PM8/11/08
to ec-programm...@googlegroups.com
Hi there,

eC is not C++. eC is a different language.
However you can build projects with both eC and C++ code in it, connecting both through the use of standard C code
(In C++, you would declare code within extern "C" {   })

This means you cannot use eC objects in C++, and C+ objects in eC directly, but you can by writing some wrapping C functions.
I'm hoping to facilitate this in the future by automatically generating bindings between eC and multiple languages.

However, I suggest you give learning eC a chance as there certainly is an eC way to do anything you can do in C++.

This coming Friday I will release version 0.43 of the Ecere SDK which includes new support for Dynamic Templates (Similar to C++ templates).
However eC templates are dynamic, meaning that they do not require to be in header files, can be packaged within shared libraries, and are a lot more dynamic in nature.

With this release also comes a new set of Container classes, such as binary trees, dynamic arrays (Similar to std::Vector), generic iterator support, associative arrays (like std::map) support, with a nice new elegant and convenient array and iteration syntax for all these. Something to make a lot of STL classes jealous.

Don't hesitate to ask if you need help linking to C++ code, or if you want more info about thew new Templates and Containers :)

Best Regards,

Jerome

wtuben

unread,
Aug 12, 2008, 7:53:07 AM8/12/08
to eC Programming Language
I met eC yesterday,and I had at once a nice imagation on it !
That's wonderful!So great!

I am looking forward to the following"Dynamic Templates" ,and very
looking forward

to that they will act very similarly to STL~


Will the eC will introduce the Sizer or Layout(e.g. in
Java,Flowlayout,GridLayout) for the gui using??

Best Regards,

wtuben.

Jerome St-Louis

unread,
Aug 12, 2008, 2:04:59 PM8/12/08
to ec-programm...@googlegroups.com
I am not familiar with Java GUI programming, are these SWING components ?
We started building a "Splitter" like control which you can see in action in the Documentor (F1 in the IDE) to resize both sides of the Window. It's not yet completed ( vertical only right now ) and is not yet integrated in the toolkit. Better "docking" support is planned also. The class Label or even the base Window class can be used to organize things, with support for anchors (which can be either relative (a percentage) or absolute from each edge of the parent window, or from its own center.

As Ecere gets more popular I hope a lot of new GUI components will be contributed...

Jerome
Reply all
Reply to author
Forward
0 new messages