[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug default/26883] New: printf should evaluate arguments _before_ print
From: |
jose.marchesi at oracle dot com |
Subject: |
[Bug default/26883] New: printf should evaluate arguments _before_ printing anything |
Date: |
Sat, 14 Nov 2020 13:57:19 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26883
Bug ID: 26883
Summary: printf should evaluate arguments _before_ printing
anything
Product: poke
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: default
Assignee: unassigned at sourceware dot org
Reporter: jose.marchesi at oracle dot com
CC: poke-devel at gnu dot org
Target Milestone: ---
In struct and union methods it is often useful to user `printf' like
his:
method _print = void:
{
try printf "%i32d, %i32d\n", field_foo, field_bar;
catch if E_elem { ... }
}
However, if field `field-bar' happens to be absent, by the time E_elem
is raised field_foo has been already printed. This is a no-no.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug default/26883] New: printf should evaluate arguments _before_ printing anything,
jose.marchesi at oracle dot com <=