Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354492 - += doesn't work properly on function inOut string parameter
Summary: += doesn't work properly on function inOut string parameter
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 09:22 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:14 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-08-11 09:22:55 EDT
Works as expected when parameter is an IN. Fails for when declared INOUT ... the string value becomes only the suffix.

program appendTest type BasicProgram {}
	function main()
		data string = "incomingINOUT";
		append(data);
		data = "incomingIN";
		appendIN(data);
	end
	
	function append(str String inout)
		trace(str);
		str += "*** SUFFIX ****";
		trace(str);
	end
	
	function appendIN(str String in)
		trace(str);
		str += "*** SUFFIX ****";
		trace(str);
	end
	
	function trace(info string in)
		syslib.writeStdOut(info);
	end
end
Comment 1 Jeff Douglas CLA 2011-08-11 17:41:38 EDT
fixed
Comment 2 Kathy Carroll CLA 2011-08-12 07:13:06 EDT
Verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:08:29 EDT
Closing this defect.