RhostMUSH / trunk

RhostMUSH 4.0: This is the official main repository of RhostMUSH. Visit us at rhostdev.mushpark.com 4201
23 stars 21 forks source link

Feature Request: @dolist and %i0 #13

Closed HarryCordewener closed 9 years ago

HarryCordewener commented 9 years ago

The request is obvious from the title: Bring %i0 etc replacements to @dolist so it can be safer. (For non-inline)

mrsenile commented 9 years ago

Making %d0-%dx (like @dolist/inline can do) is going to be a major pain in the ass to do cleanly and successfully and require a large overhead for frankly minimal gains.

The /inline was much easier as it didn't require queueing the stack up for each iteration of @dolist. This however would.

mrsenile commented 9 years ago

Looking more at the code, as of right now it would be nearly 2 meg of overhead per calling stack to make @dolist (without the /inline) handle %d (your %i#). This would be again, per calling stack, which is a huge huge huge overhead on something very few people would likely do.

If you want to use the %d with @dolist, I suggest using the /inline switch, otherwise use of ## is the only option.