Re: New switch code in dg-scripts pl6.0

From: Mark A. Heilpern (heilpern@mindspring.com)
Date: 12/16/98


Took me a while to get to this, but the problem will be
solved when pl7 is released. If anyone needs the fix for
this prior, email me. (I believe changing the #if 0 to #if 1,
which enables the older way of handling it, will also fix
things. That's found in dg_scripts.c, find_case(). )




At 11:55 AM 11/3/98 -0500, you wrote:
>when you go directly to eval_op you don't eval_expr and the code
>fails on the switch statement example when it tries to
>eval_op("==","%random.2%","2",...);  Here is the actual script
>that this problem was found with:
>Name: 'Room Check',  VNum: [12700], RNum: [   99]
>Trigger Intended Assignment: Rooms
>Trigger Type: Random , Numeric Arg: 10, Arg list: None
> Training/Workout Room [12729]
>Commands:
>   switch %random.2%
>     case 1
>   %echo% YAHHHHH
>      break
>   case 2
>   wecho YAAAAAA
>      break
>     default
>   %echo% DEFAULT
>   break
>   done
>
>--Angus
>
>
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>     +------------------------------------------------------------+
>


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST