Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000624Core InformTablespublic2011-03-23 08:122014-05-07 07:34
Assigned Tograham 
Platformx86OSMac OS XOS Version10.5
Product Version6G60 
Target VersionFixed in Version6L02 
Summary0000624: Can't blank out block value entries in a table
Description"Blank out the action entry" doesn't seem to be blanking out the action entry when that is a stored action. Similar code succeeded in blanking out text entries.
Minimal Source Text To Reproduce
Table of Pointless Actions
rank	action
1	the action of jumping
2	--
3	--
4	the action of waiting

Lab is a room. Pointlessing is an action applying to nothing. Understand "pointless" as pointlessing.

Carry out pointlessing:
	repeat through the Table of Pointless Actions:
		say the rank entry;
		say line break;
		if there is an action entry:
			try the action entry;
			blank out the action entry;
			say "nothing[line break]".
Test me with "pointless/pointless".
TagsNo tags attached.
Effect(serious/mild) Game compiles but misbehaves
Attached Files

- Relationships

-  Notes
EmacsUser (manager)
2011-03-24 18:35

Looks like the write flag that should be passed to TableLookUpEntry is becoming an argument to BlkValueCopy instead:

- - - -
BlkValueCopy((blockv_stack-->(I7BASPL+1)), TableLookUpEntry(ct_0,108,ct_1),4);
- - - -

Other block values, like indexed text and lists, are also affected.
mslattery (reporter)
2011-04-18 17:05

I don't think it makes sense to call BlkValueCopy() here at all - I think the problem is that the table entry reference is being dereferenced unnecessarily.

I reckon this can be fixed by replacing

    To blank out (tr - table-reference)
            (documented at ph_blankout):
            (- {tr}{-backspace},4); -).


    To blank out (tr - table-reference)
            (documented at ph_blankout):
            (- {-do-not-dereference:tr}{-backspace},4); -).

in section SR5/2/8 of the Standard Rules (and similarly for the deprecated "To delete (tr - table-reference)" syntax a few lines below that).
graham (administrator)
2014-01-12 13:43


- Issue History
Date Modified Username Field Change
2011-03-23 08:12 mattweiner New Issue
2011-03-23 18:38 jmcgrew Status new => acknowledged
2011-03-23 18:38 jmcgrew Category Phrases and functional programming => Tables
2011-03-23 18:38 jmcgrew Steps to Reproduce Updated View Revisions
2011-03-24 18:35 EmacsUser Note Added: 0001107
2011-03-24 18:35 EmacsUser Status acknowledged => confirmed
2011-03-24 18:35 EmacsUser Summary Can't blank out stored action entries in a table => Can't blank out block value entries in a table
2011-04-18 17:05 mslattery Note Added: 0001140
2014-01-12 13:43 graham Note Added: 0002282
2014-01-12 13:43 graham Status confirmed => resolved
2014-01-12 13:43 graham Resolution open => fixed
2014-01-12 13:43 graham Assigned To => graham
2014-05-07 07:34 jmcgrew Fixed in Version => 6L02
2014-05-07 07:34 jmcgrew Status resolved => closed

Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker