Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357539

Summary: const is not allowed for IN record parameter
Product: z_Archived Reporter: Jing Qian <jqian>
Component: EDTAssignee: Project Inbox <edt.language-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: jspadea, pharmon, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jing Qian CLA 2011-09-13 14:43:20 EDT
consider the following EGL program, it does not allow me to put const for the parameter, saying only primitive and array of primitives can use const. 

Should this be supported in EDT 070?

package a;

Record myR
	f1 String;
end

// basic program
//
program Simple type BasicProgram {}
		
	function main()
		sysLib.writeStdOUt("abc");
		r myR;
		r.f1 = "this is field1 for record myR";
		function2(r);
	end
	
	function function2(r myR const in)
		sysLib.writeStdout("in parameter record: " + r.f1);	
	end	
end
Comment 1 Paul Harmon CLA 2011-10-27 17:15:58 EDT
This is the same reason we dont support program Constant fields that are records. We can address this in 1.0
Comment 2 Justin Spadea CLA 2012-04-25 10:07:01 EDT
Bug 377632 includes this change as well as others. We'll address it all together.

*** This bug has been marked as a duplicate of bug 377632 ***
Comment 3 Matt Heitz CLA 2013-01-03 10:08:20 EST
Closing all bugs in the RESOLVED state with reason INVALID, WONTFIX, DUPLICATE, WORKSFORME, or NOT_ECLIPSE.