Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/09/01 11:43
Read: times


 
#16462 - RE: ReG. reentrant functions - Peter
Peter opined:
"So such functions can also easy be rewritten as simple loops." (my emphasis)

Of course, there's always more than 1 way to skin a cat, but there are certainly cases where reentrancy is by far the easiest - and to rewrite it would be neither "easy" nor give just a "simple" loop.

Consider, for example, how you might implement the MS-DOS dir /s command without a reentrant function...
(Yes, I know you're unlikely to actually want to do that on an 8051, but it's a good, familiar example).

List of 14 messages in thread
TopicAuthorDate
ReG. reentrant functions            01/01/70 00:00      
RE: ReG. reentrant functions            01/01/70 00:00      
RE: ReG. reentrant functions            01/01/70 00:00      
RE: ReG. reentrant functions            01/01/70 00:00      
RE: ReG. reentrant functions            01/01/70 00:00      
RE: ReG. reentrant functions            01/01/70 00:00      
RE: ReG. reentrant functions            01/01/70 00:00      
RE: ReG. reentrant functions            01/01/70 00:00      
RE: ReG. reentrant functions            01/01/70 00:00      
RE: ReG. reentrant functions            01/01/70 00:00      
RE: ReG. reentrant functions - Peter            01/01/70 00:00      
RE: ReG. reentrant functions - Peter            01/01/70 00:00      
RE: ReG. reentrant functions - Peter            01/01/70 00:00      
RE: ReG. reentrant functions - Peter            01/01/70 00:00      

Back to Subject List