Talk:Set length

From Kolmafia
Revision as of 21:24, 6 May 2010 by imported>Bale
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I assume a buffer set to a longer length than what it currently contains will have blank spaces appended, but I'm not really that up on buffers. Clarify? --StDoodle (#1059825) 15:50, 6 May 2010 (UTC)


> ash buffer tester; tester.append("hello world"); tester.set_length(10);tester.append("*"); print(tester)

hello worl*
Returned: void

> ash buffer tester; tester.append("hello world"); tester.set_length(20);tester.append("*"); print(tester)

hello world         *
Returned: void


That's what my CLI looks like right now, but something is weird. I'm going to have to ask a question on the forum. http://kolmafia.us/showthread.php?2467-7579-Add-void-set_length(-buffer-int-)-function-to-ASH-to-...&p=29275#post29275 --Bale 21:24, 6 May 2010 (UTC)