Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kalbun

Pages: [1]
1
Suggestions and Requests / automatic update of overloaded members
« on: December 28, 2004, 10:32:41 am »
Suppose you have a class that generalises another one. When you create the generalisation, EA asks you which member to override or implement.
It could be very nice if, when you modify the members in the ancestor, EA automagically change derived classes too.
At the moment one has to recreate the generalisation and then manually remove the old member definition from derived class.

2
Suggestions and Requests / sqlite and EA
« on: December 27, 2004, 04:39:23 am »
I'm using EA to generate tables for sqlite.
After some minimal work in the "database datatype" dialog box, I can generate SQL scripts to create tables.
There is a problem, yet, related with the creation of primary keys.
Indeed uses ALTER TABLE to add a constraint to the primary key, while sqlite uses a different syntax (appending PRIMARY KEY after the field definition).
This means that scripts must be modified by hand and then executed with sqlite. It would be great if this issue could be addressed in a future release.

3
General Board / random problem on UML toolbox
« on: December 28, 2004, 10:25:18 am »
in some cases, scroll buttons (the two large arrows on the right side)  in the UML toolbox get deactivated and the only way to reactivate them is to restart EA - closing and reopening toolbox doesn't help.
Unfortunately I was not able to reproduce this bug sistematically.

(BTW: I use W2K with latest SP and patches)

4
General Board / C++ code outside curling braces
« on: December 23, 2004, 02:09:55 pm »
Suppose I have a class like this:

class TAmbient : public TTabSheet
{...}

If TTabSheet constructor has no parameters, then I don't need to define TAmbient constructor because:

TAmbient* Ambient = new TAmbient

is OK (the compiler automagically generates the ancestor's constructor).

But suppose TTabSheet constructor requires a parameter : in this case I need to write an explicit constructor, which source code is something like:

__fastcall TAmbient::TAmbient(TComponent* AOwner)
: TTabSheet(AOwner)
{
...
}

Now the question : how to do it with EA? If I write code outside the curling braces, it is deleted each time the source code is generated!!

ok, enough for now...

Happy X-Mas and Peace to everyone!!

:)

5
General Board / bug?
« on: December 21, 2004, 03:08:44 pm »
using Borland c++builder, I defined a new class as descendant of a VCL class.
I chose not to use automatic generation of constructor, and instead wrote the member myself - it was easier to add the required parameters and the __fastcall clause.

Ok, suppose the constructor was defined in the EA input mask as:

Name: foo
Return type: __fastcall
Virtual flag checked

Then, generated code is:

virtual __fastcall foo( <various parameters> );

So far so good. But when I generate the code the second time I obtained:

virtual __fastcall virtual __fastcall foo (...

and then

virtual __fastcall virtual __fastcall virtual __fastcall foo (...

And so on towards the infinity   ;D

Is it a bug? Or I'm doing something in the wrong way?

6
General Board / mmm... more bugs?
« on: December 22, 2004, 12:54:11 pm »
It seems that, once you have defined an attribute as <private>, the generated code does not change even if you define <public> or what else the same attribute.
Again, I know too little of EA, but this seems a bug to me - not serious but rather annoying.
???

Note: I'm using the very last version available on the site

Pages: [1]