SV: SDL-News: Recursive Procedure in SDL


Subject: SV: SDL-News: Recursive Procedure in SDL
From: Anders Olsen (anders#cinderella.dk)
Date: Tue Apr 09 2002 - 20:28:29 GMT


Become an SDL Forum Society member <http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From "Anders Olsen" <anders#cinderella.dk> to sdlnews -----

Dear Yuchen Zhang,

Recursive procedures are typically used in situations where you need to
manipulate tree structures or where you have to do complex numeric
operations. Until now, SDL has not been much used in such application areas.
This might however change with SDL2000 which has more powerful mechanisms
for handling of data structures.

In SDL-96, procedures are typically used for structuring, for example to
split the state machine into smaller parts or handling a certain aspect for
a process.

Operators, on the other hand, are more 'close' to data handling and you will
therefore more often find recursion there.

But I dont think recursion in SDL differs from recursion in other languages
when it comes to execution problems.

Regards
Anders Olsen

Cinderella ApS
www.cinderella.dk

-----Oprindelig meddelelse-----
Fra: owner-sdlnews#sdl-forum.org [mailto:owner-sdlnews#sdl-forum.org]Pa
vegne af Yuchen Zhang
Sendt: 9. april 2002 18:10
Til: sdlnews#sdl-forum.org
Emne: SDL-news: Recursive Procedure in SDL

Become an SDL Forum Society member
<http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From Yuchen Zhang <zhang#stc.corp.mot.com> to sdlnews -----

Hello,

I post a message about recursive procedure in SDL awhile ago, but didn't
get much reply, so I'd like to give it a try again. And this time, I will
try to be more specific.

SDL supports recursive procedures, but I have not encountered any models
using them. There is a theory I heard that it's because faulty recursive
procedures may crash the whole system through over-flowing the stack while
faulty iterations may just lock up one process. The theory is debatable
as far as I can see. And now that recursive procedures in SDL is not going
away any time soon (as far as I know), I was wondering why are recursive
procedures not used, or (hopefully) I am just missing out a whole world
out there using SDL recursive procedures. Thanks.

Best,

Yuchen Zhang

--End text from Yuchen Zhang <zhang#stc.corp.mot.com> to sdlnews ---
For extra SDL Forum Society benefits join at
<http://www.sdl-forum.org/Society/members.htm>
or (iff this does not answer your question) email:
owner-sdlnews#sdl-forum.org

--End text from "Anders Olsen" <anders#cinderella.dk> to sdlnews ---
For extra SDL Forum Society benefits join at <http://www.sdl-forum.org/Society/members.htm>



This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT