|Anonymous | Login | Signup for a new account||2018-10-16 05:28 PDT|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002067||Core Inform||Actions||public||2018-07-28 10:55||2018-09-02 06:44|
|Priority||normal||Severity||mild||Reproducibility||have not tried|
|Target Version||Fixed in Version|
|Summary||0002067: Extending 'show' to work for any visible noun creates infinite loop. Probably|
|Description||I wanted to extend 'show' so that I didn't have to be holding the thing. This caused an infinite loop.|
|Minimal Source Text To Reproduce|
"Lucian's Room in Cragne Manor" by Lucian Smith Errors1 is a room. Emmett is a man in Errors1 Understand "show [any visible thing] to [Emmett]" as showing it to.
|Additional Information||Lucian's Room in Cragne Manor|
An Interactive Fiction by Lucian Smith
Release 1 / Serial number 180728 / Inform 7 build 6M62 (I6/v6.33 lib 6/12N) SD
You can see Emmett here.
>show apple to emmett
Fatal Error: Stack overflow
|Tags||No tags attached.|
|Effect||(serious/mild) Game compiles but misbehaves|
This happens if you put "visible" in *any* noun token. I.e.:
Understand "touch [any visible thing]" as touching.
The parser is not designed to handle that. I don't know whether Graham will want to add a run-time error for it, but the practical answer is "don't do that."
It sounds like you want to retroactively change the action definition -- that is, you want that grammar line to behave as if
Showing it to is an action applying to one visible thing and one visible thing.
However, this is currently not possible. Grammar lines can't change the action declaration. In fact there's no way to redefine an action once it's declared; the only path is to define a new action with a new name.
|For the record, the "Lollipop Guild" example in the documentation covers how to override the carrying requirements for showing. Showing could probably be easily extended to all visible things by a reaching inside rule, like "A rule for reaching inside when showing: allow access."|
|2018-07-28 10:55||lpsmith||New Issue|
|2018-07-29 09:09||zarf||Note Added: 0004792|
|2018-09-02 06:44||mattweiner||Note Added: 0004798|
|Copyright © 2000 - 2010 MantisBT Group|