intfiction.org

The Interactive Fiction Community Forum
It is currently Fri Aug 17, 2018 11:29 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Tue May 15, 2018 8:51 am 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5714
[s] can't work for both nouns and verbs without additional information. (That is, it has to know whether it's being applied to a noun or a verb.)

Modern Inform handles this by letting you write "To rest is a verb", and then giving you a "[rest]" substitution. I don't remember how it used to work.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue May 15, 2018 12:30 pm 
Offline

Joined: Wed Nov 12, 2014 5:20 pm
Posts: 153
That's pretty much how I've understood it, and also how it is explained in the documentation (§14.3). The current behaviour of [s] seems to be "print an s unless the last number printed was 1," as stated in §5.4. But I've seen a lot of older code that uses [s] at the end of verbs.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group