intfiction.org

The Interactive Fiction Community Forum
It is currently Sat May 18, 2013 12:25 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Mar 07, 2012 8:36 am 
Offline
User avatar

Joined: Fri Jan 27, 2012 2:34 pm
Posts: 271
Location: Boston
How do I get the Nth element out of a list?

_________________
http://tiltedcandle.wordpress.com


Top
 Profile Send private message  
 
PostPosted: Wed Mar 07, 2012 10:33 am 
Offline
User avatar

Joined: Fri Jan 27, 2012 2:34 pm
Posts: 271
Location: Boston
Programming to me is like a date where I want to talk romance and the girl wants to talk about how I split my infinitives.

someList[NthTerm]

--Is this language use actually defined anywhere in the sys manual or the library? I had to gist it from a demo.


Conrad.

_________________
http://tiltedcandle.wordpress.com


Top
 Profile Send private message  
 
PostPosted: Wed Mar 07, 2012 11:20 am 
Offline

Joined: Sun Mar 01, 2009 8:02 pm
Posts: 901
Good question. It's used in Learning T3, but you have to know what you're looking for in order to find it. (It's on p. 144, for instance.) It doesn't seem to be mentioned on the List page of the System Manual.


Top
 Profile Send private message  
 
PostPosted: Wed Mar 07, 2012 11:23 am 
Offline

Joined: Sat Jul 16, 2011 3:48 pm
Posts: 55
It is defined in the TADS 3 System Manual, chapter 3: http://www.tads.org/t3doc/doc/sysman/langsec.htm. Look for "Fundamental Datatypes".


Top
 Profile Send private message  
 
PostPosted: Wed Mar 07, 2012 11:52 am 
Offline
User avatar

Joined: Fri Jan 27, 2012 2:34 pm
Posts: 271
Location: Boston
Yup, it sure is. And while nearly every entry there has a short blurb and a link to a full description, in lists the indexing behavior is defined in the blurb and not in the linked full-article treatment.

I'll give this page some good study.


Conrad.

_________________
http://tiltedcandle.wordpress.com


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


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