Einzelnen Beitrag anzeigen

chuckholdt

Registriert seit: 2. Dez 2007
Ort: Hamburg
15 Beiträge
 
Delphi 2009 Professional
 
#3

AW: delphi prism include directive

  Alt 23. Feb 2011, 10:30
Hi Sebastian,

we want to use it because of ....

We use our code on "both sides", win32 delphi and prism.

In general this works quite nicely, but there are some inconveniences.

The one we would like the include for is the "public class" problem. There is no way to tell prism that all classes in the interface are public, so we have to write

{$ifdef prism) public ($endif) class xyz =class(base)

except of the extra text, no problem

but.....

the delphi code formatter can't handle that, in units using above ifdef, format is totally destroyed when using format code

if we could have put above ifdef.... in an include file, delphi is fine


Two wishes, that could make prism even better

option to make all things implicit public in the interface
option to ignore destructors

and maybe the possibility to use enumeration values without the type prefix, as it is possible in Delphi

Chuck

P.s.

Where is the right place to post reports about bugs/ameliorations in prism/shineon
thomas (chuck) holdt
  Mit Zitat antworten Zitat