Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Development
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing

Members: 0
Guests: 21
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,397
638
IgnacioBol
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Try/Catch function?
Forum Rules | Mark all | Recent Posts

Try/Catch function?
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 May 9, 2013, 7:58 pm
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

Just looking to see if there's anything that mimics a try/catch function for the smaugfuss codebase? I admit that I haven't actually tried anything as yet, was just starting to look into the possibility as I don't ever remember seeing this implemented anywhere in the code.
       
Post is unread #2 May 9, 2013, 10:49 pm
Go to the top of the page
Go to the bottom of the page

GatewaySysop
Conjurer
GroupMembers
Posts396
JoinedMar 7, 2005

Maybe it's too late at night or something, but what do you mean by try/catch function? What are you wanting to do? Apologies if I don't follow, but it's been one of those days. :huh:

       
Post is unread #3 May 10, 2013, 1:28 am
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

Yeah, it was one of those days, which is why I posted the question! lol

But, it would look something like this:
try{
    <code to try goes here>
}
catch [System.Exception]{
    <code to do if what happens in the try section fails, this is usually a system error or something that causes a crash>
}
       
Post is unread #4 May 10, 2013, 6:59 am
Go to the top of the page
Go to the bottom of the page

Quixadhal
Conjurer
GroupMembers
Posts398
JoinedMar 8, 2005

SmaugFUSS is a dikurivative, so unless you meant in the mobprogram mini-language, you'd have to implement try/catch in C++, in the specific driver code you wanted to have a recovery option for.

I believe it will compile cleanly with g++, so that option is there. Good luck!
       
Post is unread #5 May 10, 2013, 8:31 am
Go to the top of the page
Go to the bottom of the page

Aurin
Magician
GroupMembers
Posts189
JoinedSep 5, 2010

So, looks like it compiled cleanly. :) Will have to wait and see if the function works around the problem section. heh

Thanks for the responses.
       
Post is unread #6 May 10, 2013, 10:36 am
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

       
Pages:<< prev 1 next >>