Bugs item #2051290, was opened at 2008-08-14 13:34
Message generated for change (Comment added) made by mlkersten
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2051290&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: MonetDB5 CVS Head
>Status: Closed
>Resolution: Later
Priority: 5
Private: No
Submitted By: Fabian (mr-meltdown)
Assigned to: Martin Kersten (mlkersten)
Summary: M5: printf accepts type mismatches

Initial Comment:
# observed 13-08-2008: printf accepts a long for an int formatter,
# whereas it should complain (additionally the error could be clearer)

l := 12:lng;
f := 5:flt;

io.printf("%d\n", l);
io.printf("%d\n", f);


(the same goes for flt and dbl)

added as tests/BugReports/Tests/printfacceptsmismatch

----------------------------------------------------------------------

>Comment By: Martin Kersten (mlkersten)
Date: 2008-08-16 20:05

Message:
Logged In: YES 
user_id=490798
Originator: NO

The semantics of io.printf relies on the underlying C-implementation,
which means that we simply pass a pointer to the value and catch
an error of io.printf().
There is no analysis of the format string against the type.
Moved to feature request.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2051290&group_id=56967

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to