AGB  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen .NET-Sprachen Prism delphi prism include directive

delphi prism include directive

Ein Thema von chuckholdt · begonnen am 22. Feb 2011 · letzter Beitrag vom 23. Feb 2011
Antwort Antwort
chuckholdt

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

delphi prism include directive

  Alt 22. Feb 2011, 19:05
Does anybody know how to use the {$include <filename> directive in delphi prism (oxygen)

We tried it to no avail

Chuck
thomas (chuck) holdt

Geändert von Phoenix (23. Feb 2011 um 08:23 Uhr) Grund: added Prism-Tag to language setting of thread
  Mit Zitat antworten Zitat
Benutzerbild von Phoenix
Phoenix
(Moderator)
Online

Registriert seit: 25. Jun 2002
Ort: Hausach
7.326 Beiträge
 
#2

AW: delphi prism include directive

  Alt 23. Feb 2011, 08:22
Include is not supported in Oxygene (or any other .NET language).

Why do you want to use it? There may be other ways (Partial classes, outsourcing into sattelite assemblies etc) to achieve the same goal.
Sebastian P.R. Gingter
不死鳥 Visit my Blog.
Do not argue with an idiot. They lower you to their level and then try to beat you with experience.
  Mit Zitat antworten Zitat
chuckholdt

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

AW: delphi prism include directive

  Alt 23. Feb 2011, 09: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
Benutzerbild von Phoenix
Phoenix
(Moderator)
Online

Registriert seit: 25. Jun 2002
Ort: Hausach
7.326 Beiträge
 
#4

AW: delphi prism include directive

  Alt 23. Feb 2011, 09:50
Either in Embarcadero's QC, or via mail to support@remobjects.com.
Latter is faster and will be screened and if you kindly ask for feedback i'm pretty sure you will be informed on how the decisions are going.

Update: ShineOn is opensource, so you can extend it as you like.
Sebastian P.R. Gingter
不死鳥 Visit my Blog.
Do not argue with an idiot. They lower you to their level and then try to beat you with experience.
  Mit Zitat antworten Zitat
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:47 Uhr.
Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2014 by Daniel R. Wolf