Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature wish: [Printf] change order of parameters printing #3363

Closed
vicuna opened this issue May 28, 2002 · 1 comment
Closed

Feature wish: [Printf] change order of parameters printing #3363

vicuna opened this issue May 28, 2002 · 1 comment

Comments

@vicuna
Copy link

vicuna commented May 28, 2002

Original bug ID: 1172
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Jérôme Marant
Version: 3.0.4
OS: Debian GNU/Linux
Submission from: aboukir-101-1-17-jmarant.adsl.nerim.net (62.212.105.6)

Hi,

Printf fucntions are missing an interesting feature
that is changing the order of parameters that are
to be printed.

Exemple:

Printf.printf "%2$s %1$d" "hello" 2;;

prints : 2 hello

Note that it is a feature of the C printf.

I have no idea if this is difficult to implement.

Thanks.

Cheers,

@vicuna
Copy link
Author

vicuna commented Nov 7, 2002

Comment author: administrator

Hard to reconcile with the "curried" presentation and implementation of printf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant