Author |
Nifty. |
Pope Fleet Admiral
Joined: June 11, 2002 Posts: 2449 From: World of tomorrow
| Posted: 2004-05-07 09:27  
I just stumbled upon this while on a different errand.. looks interesting for AI Design tho.
http://www.inf.puc-rio.br/~roberto/docs/corosblp.pdf
_________________
|
Patriarch Cadet
Joined: November 26, 2003 Posts: 252 From: Germany
| Posted: 2004-05-07 17:37  
you are right its really interesting,
hmm i think i go sleep and have a dream of this essay
_________________
|
Chromix Cadet
Joined: June 29, 2001 Posts: 3052
| Posted: 2004-05-08 00:57  
Coroutines are an advanced topic,
you can solve about all problems you ecounter in DarkSpace scripts without the usage of coroutines. In some cases it leads to a better design when using coroutines though.
There is just one drawback, error handing using pcall. It just doesn't work that well with coroutines.
_________________
|
Pope Fleet Admiral
Joined: June 11, 2002 Posts: 2449 From: World of tomorrow
| Posted: 2004-05-08 09:06  
pcall seems to me like it should only be used in rare cases to probe for specific conditions, or as sort of a top level exception handler.
what i was thinking about the coroutines was that they might provide a way for ai agents to interoperate on an atomic operation level.
_________________
|
Antdizzle
Joined: February 07, 2003 Posts: 860
| Posted: 2004-05-08 12:58  
i didn't read it since there wasn't any pictures
_________________
|
Pope Fleet Admiral
Joined: June 11, 2002 Posts: 2449 From: World of tomorrow
| Posted: 2004-05-08 13:02  
O<->O
^ there's your picture, granted, its a bit lacking in detail.
_________________
|