News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

NassiSchneidermann

Started by LordCB, July 31, 2012, 03:01:43 PM

Previous topic - Next topic

LordCB

Hello friends,

is it true that the plugin have trouble with try catch blocks. I cannot generate diags with try catch included.

Yours,

MortenMacFly

Quote from: LordCB on July 31, 2012, 03:01:43 PM
I cannot generate diags with try catch included.
...because?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MortenMacFly

#2
Maybe I see your issue: Are you looking for a "Try/Catch" block?

If so, you probably don't know that Nassi-Shneiderman is a standard with limited symbols (see here: http://en.wikipedia.org/wiki/Structogram). So unless you want to break the standard or invent a new one (which both makes no sense) there is no "Try/Catch" block. But it is also not needed, as with NS-diagrams you would model the "Try" part only; or "simulate" the "Try" and "Catch" flow with an "If-Then-Else" statement.

Edit: BTW: Here is the original reference: http://www.cs.umd.edu/hcil/members/bshneiderman/nsd/1973.pdf
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]