English
Forum

Verschachtelte Proceduren and Variablendeklaration

 

Torsten
Rümker
I work sometimes with verschachtelten Proceduren, and get if I whom xpse to that Compilieren use, a warning the variables not declared are.
CompileMarkSeparation
Proc aussen

    Declare beispiel%

    Proc innen

        let beispiel% = 1

    EndProc

    innen

Ich lerne, ob ich will oder nicht!
Betriebssystem:
- Ubuntu 15.x
- Windows (diverse)
XProfan Version: X2
10/08/06  
 



now this Error of XPSE might only in the Version of yesterday vorkommen - The Today Version machts correctly.. what You there make is naturally allows as long as inside really in Outer is.

I poste but immediately again one Update - having a bow with whom Compilerschaltern drin.
 
10/08/06  
 



the widerum isn't allows and becomes too zurecht angemeckert.
CompileMarkSeparation
Proc Aussen

    Declare Beispiel%
    Innen

Endproc

Proc Innen

    Let Beispiel% = 1

oc

 
10/08/06  
 




Torsten
Rümker
Jau is logical so ought to it naturally not written go.

whom Xpse whom I using I had live to my Test Downloaded.

was my erstes time

MfG
Torsten
 
Ich lerne, ob ich will oder nicht!
Betriebssystem:
- Ubuntu 15.x
- Windows (diverse)
XProfan Version: X2
10/08/06  
 




Sebastian
König
[quote:e6d761775e]the widerum isn't allows and becomes too zurecht angemeckert.[/quote:e6d761775e] Well - allows is it in (X)Profan unfortunately, if too really very unschön...

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
10/08/06  
 



The actually V0.1.6b reacted so too? then bräuchte I Perhaps NEN Piece Source so the bow nachvollziehbar is...
 
10/08/06  
 



[quote:faebaede03=Sebastian king][quote:faebaede03]the widerum isn't allows and becomes too zurecht angemeckert.[/quote:faebaede03] Well - allows is it in (X)Profan unfortunately, if too really very unschön...

MfG

Sebastian[/quote:faebaede03]
Yes I know lol from visibility the executing Program ists Yes then too intern.

I find but one ought to not each nonsense support.
 
10/08/06  
 




Jac
de
Lad
but it functions fine so...
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
10/10/06  
 



[quote:95537f47ff=Jacob Liebeck]but it functions fine so... [/quote:95537f47ff]
For which But no warranty gives - particularly not what follow up versions concerns.
 
10/10/06  
 




RGH
Hi,

with the Sichtbarkeit the variables stops I it so, How Delphi or. Pascal (and etliche others Programmiersprachen):

If Prozedur_A a Prozedur_B aufruft, then are The variables of Prozedur_A in Prozedur_B visible. This will too so stay.

On a Verschachtelung of Procedures (means Procedures, The in the Source within of/ one others procedure stand), would I dispense. the has presently in XProfan only a mere optische effect, there too The inside procedure of outside the äußeren procedure found becomes. (this is in Delphi/Pascal differently and was in XProfan too time differently planned.)

PS: After the reinen objektorientierten teach are modes within modes you don't say so, and Procedures, The not as method a Objekt yoked are, and be it one statisches Objekt, are neither possible.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
10/10/06  
 



this is Yes almost How Shared, knew I not at all
CompileMarkSeparation
functions well
 
10/10/06  
 




RGH
this example shows though too, Why one this feature sooner economical use ought to. In more Programs becomes it then leich unübersichtlich, if it on several plains variables equal Namens gives and on these point uses go.

I ziehe it to, in Procedures only local Variables and The Übergabeparameter To verwenden; possible yet possible little globale variables, The on the Programmanfang or. in the Hauptprogramm too explicit as such obviously are. between the what a Language allows and what gutem Programmierstil corresponds to, there hold sometimes differences! ;)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
10/10/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

8.519 Views

Untitledvor 0 min.
RudiB.11/05/21
rquindt05/11/18
E.T.04/01/18
GDL08/24/15
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie