Autor Beitrag
Mossi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 99
Erhaltene Danke: 2

Win XP, Linux
D7 Enterprise, K3 Prof
BeitragVerfasst: Mi 13.09.06 10:39 
Ich hatte gerade die Ehre mich durch ein uraltes Pascalprogramm zu wühlen, das seit ca. 10 Jahren eigentlich ganz gut funktioniert. Leider ist jetzt ein kleiner Fehler aufgetaucht...

Dabei ist mir die uralte Schreibweise für Arrayindexe aufgefallen, die ich schon ewig nimmer gesehen habe.
ausblenden Quelltext
1:
a: array(.1..10.) of integer;					

statt
ausblenden Quelltext
1:
a: array[1..10] of integer;					


Kann diese alte Schreibweise mit den runden Klammern irgendwann Probleme verursachen bzw wird die auch noch nach Delphi7 unterstützt? Wenn nicht, sollte ich mir nämlich vormerken das mal zu ändern.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 13.09.06 10:56 
In D2005 gibts mit der alten Schreibweise keine Probleme.
Mossi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 99
Erhaltene Danke: 2

Win XP, Linux
D7 Enterprise, K3 Prof
BeitragVerfasst: Mi 13.09.06 11:04 
ok, dann werd ich mir da jetzt mal weiter keine Sorgen machen
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 13.09.06 16:52 
Mal ne keleine Frage zu dieser Schreibweise (Arbeite ja am GeSHi mit ;-)):

  • Wie sieht das mit der Nutzung von Leerzeichen aus?
    Also darf man auch a: Array (. 1..10 .) of Integer schreiben, bzw. a: Array (.1 .. 10.) of Integer usw.? Welche Leerzeichen-Kombis sind dabei erlaubt?
  • sind mit dieser Schreibweise mehrdimensionale Arrays erlaubt?

Wäre ganz nett, wenn mir da jemand mal kurz die Infos zu geben könnte, damit dass mit umgesetzt werden kann im GeSHi.

TIA,
BenBE.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 13.09.06 19:26 
Theoretisch ja, da es imo nicht den Syntax-Regeln widerspricht.
Aber probiere es doch einfach aus.