[Bug 376406] New: block<void> evaluated immediately while block<boolean> evaluated on demand
https://bugzilla.novell.com/show_bug.cgi?id=376406 Summary: block<void> evaluated immediately while block<boolean> evaluated on demand Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: benji@opensuse.org QAContact: jsrain@novell.com CC: mvidner@novell.com Found By: --- The following YCP programme logs One, Three, Two. { y2milestone("one"); block<boolean> later = ``{y2milestone("two"); return false;}; y2milestone("three"); eval(later); } While the following programme logs One Two Three { y2milestone("one"); block<void> later = ``{y2milestone("two");}; y2milestone("three"); eval(later); } Expected behaviour: the second programme should print One, Three, Two. block<void> should behave the same as block<boolean> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=376406 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|mvidner@novell.com | AssignedTo|bnc-team-screening@forge.provo.novell.com |mvidner@novell.com Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=376406 User mvidner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=376406#c1 --- Comment #1 from Martin Vidner <mvidner@novell.com> 2008-04-15 03:45:30 MST --- Notes to self: Adding "return nil;" to the failing case helps in diffing the following: ycpc the files and ybcdump the result. The correct case uses YEReturn, the failing one doesn't. Search the libycp sources (esp. parser.yy) for YEReturn. Also, ycpc on the failing case suspiciously warns: [Parser] Warning: rhs of assignment is undefined -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=376406 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com