Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357539 - const is not allowed for IN record parameter
Summary: const is not allowed for IN record parameter
Status: CLOSED DUPLICATE of bug 377632
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-13 14:43 EDT by Jing Qian CLA
Modified: 2017-02-23 14:18 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.