Author Topic: TRY verschachteln  (Read 261 times)

Offline WPShadow

  • Prof. Inline
  • *****
  • Posts: 1533
    • View Profile
    • http://lostrevenant.blogspot.com
TRY verschachteln
« on: 2012-Jul-08 »
Hi,

ist es nicht möglich Try - Blocke ineinander zu verschachteln?

Ich bekomme da die Fehlermeldung:

Code: [Select]
(42) error : TRY, CATCH, FINALLY mismatch

LG

W.
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *****
  • Posts: 4564
  • O Rly?
    • View Profile
Re: TRY verschachteln
« Reply #1 on: 2012-Jul-08 »
habe ich noch nie gebraucht :D
I <3 DGArray's :D

PC:
AMD Phenom II x4 @ 3.6ghz, 16gb 1600 Ram, ATI HD5850 1GB, Windows 7 64Bit


Offline WPShadow

  • Prof. Inline
  • *****
  • Posts: 1533
    • View Profile
    • http://lostrevenant.blogspot.com
Re: TRY verschachteln
« Reply #2 on: 2012-Jul-08 »
Ich packe einfach einen Block nach dem Anderen, dann geht das auch. Wird dann aber unübersichtlicher! ^^
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Offline coolo

  • Mr. Polyvector
  • ***
  • Posts: 120
  • Coolo ist cool!
    • View Profile
    • programming with design
Re: TRY verschachteln
« Reply #3 on: 2012-Jul-09 »
Beim Programmieren von GLBScript ist mir das auch aufgefallen.

Mein Workaround war, dass ich den Catchcode in einer eigenen Funktion untergebracht habe.

Weiters ist mir noch aufgefallen, dass ein GOTO in einen Catchcode zu C++ Fehlern geführt hat (Allerdings habe ich das provoziert(dachte mir schon dass das kommen wird :D), habe es nicht produktiv einsetzen wollen :P)
That's no Bug, that's my project!

http://programming-with-design.at/