Bug 408891

Summary: cannot assign integer to reference in YCP
Product: [openSUSE] openSUSE 11.1 Reporter: Arvin Schnell <aschnell>
Component: YaST2Assignee: Martin Vidner <mvidner>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Minor    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Arvin Schnell 2008-07-14 13:14:26 UTC
It's not possible to assign a const integer to a integer
reference in YCP:

    void bar(integer& i)
    {
	i = 42;    // fails with compile error
    }


But a workaround exists:

    void foo(integer& i)
    {
	integer j = 42;
	i = j;
    }
Comment 1 Martin Vidner 2008-07-14 13:55:33 UTC
Hm, this bug is not as rare as I thought.

*** This bug has been marked as a duplicate of bug 205663 ***