emacs.d/clones/lisp/www.cliki.net/Issue FORMAT-RADIX-NONINTEGER.html
2022-10-07 15:47:14 +02:00

76 lines
No EOL
4.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>CLiki: Issue FORMAT-RADIX-NONINTEGER</title>
<link rel="alternate" type="application/atom+xml" title="ATOM feed of edits to current article"
href="https://www.cliki.net/site/feed/article.atom?title=Issue%20FORMAT-RADIX-NONINTEGER">
<link rel="stylesheet" href="static/css/style.css">
<link rel="stylesheet" href="static/css/colorize.css">
</head>
<body>
<span class="hidden">CLiki - Issue FORMAT-RADIX-NONINTEGER</span>
<div id="content"><div id="content-area"><div id="article-title">Issue FORMAT-RADIX-NONINTEGER</div><div id="article"><a href="Issue.html" class="category">Issue</a>: FORMAT-RADIX-NONINTEGER<p>Forum: Editorial<p>References: Section 22.3.1 of the ANSI CL specification<p>Category: CLARIFICATION/CHANGE<p>Edit History: 2004-08-01, version 1 created by <a href="Paul&#32;Dietz.html" class="internal">Paul Dietz</a><p>Status: For CLiki consideration <p><dl>
<dt>Problem Description:<p></dt>
<dd>The ~D format directive is indicated to act like ~A with decimal printing when the argument is not an integer. The ~R, ~B, ~O, and ~X are described as acting like ~D, but it is not stated specifically that they do the same. Also, it is not clear if the common format parameters between ~D and ~A are passed along to ~A (but see the page for ~F, which implies that the width parameter does get passed along from ~D to ~A.)<p></dd>
<dt>Proposal (FORMAT-RADIX-NONINTEGER:UNIFY)<p></dt>
<dd>Make ~R, ~B, ~O, and ~X be consistent with ~D on non-integer arguments. <b>In this situation</b>, ~B, ~O, and ~X should bind *PRINT-BASE* to 2, 8, or 16 (respectively) then invoke ~A on the argument. ~R should bind *PRINT-BASE* to the radix parameter (if present) and invoke ~A. All of these (and ~D) should invoke ~A with the specified <i>mincol</i> and <i>padchar</i> parameters, if they are present, and ignore <i>commachar</i> and <i>comma-interval</i>.<p></dd>
<dt>Test case:<p></dt>
<dd><p></dd>
<dt>Rationale:<p></dt>
<dd>This seems to be the consistent thing to do.<p></dd>
<dt>Current practice:<p></dt>
<dd><p></dd>
<dt>Cost to Implementors:<p></dt>
<dd><p></dd>
<dt>Cost to Users:<p></dt>
<dd>None.<p></dd>
<dt>Cost of Non-Adoption:<p></dt>
<dd><p></dd>
<dt>Benefits:<p></dt>
<dd>Increased consistency.<p></dd>
<dt>Aesthetics:<p><dt>Discussion:
<ul>
<li>Bruno Haible supports UNIFY.
</li>
</ul><p></dt>
</dt>
</dl></div></div>
<div id="footer" class="buttonbar"><ul><li><a href="Issue&#32;FORMAT-RADIX-NONINTEGER.html">Current version</a></li>
<li><a href="https://www.cliki.net/site/history?article=Issue%20FORMAT-RADIX-NONINTEGER">History</a></li>
<li><a href="https://www.cliki.net/site/backlinks?article=Issue%20FORMAT-RADIX-NONINTEGER">Backlinks</a></li><li><a href="https://www.cliki.net/site/edit-article?title=Issue%20FORMAT-RADIX-NONINTEGER&amp;from-revision=3770651122">Edit</a></li><li><a href="https://www.cliki.net/site/edit-article?create=t">Create</a></li></ul></div>
</div>
<div id="header-buttons" class="buttonbar">
<ul>
<li><a href="https://www.cliki.net/">Home</a></li>
<li><a href="https://www.cliki.net/site/recent-changes">Recent Changes</a></li>
<li><a href="CLiki.html">About</a></li>
<li><a href="Text&#32;Formatting.html">Text Formatting</a></li>
<li><a href="https://www.cliki.net/site/tools">Tools</a></li>
</ul>
<div id="search">
<form action="https://www.cliki.net/site/search">
<label for="search_query" class="hidden">Search CLiki</label>
<input type="text" name="query" id="search_query" value="" />
<input type="submit" value="search" />
</form>
</div>
</div>
<div id="pageheader">
<div id="header">
<span id="logo">CLiki</span>
<span id="slogan">the common lisp wiki</span>
<div id="login"><form method="post" action="https://www.cliki.net/site/login">
<label for="login_name" class="hidden">Account name</label>
<input type="text" name="name" id="login_name" class="login_input" />
<label for= "login_password" class="hidden">Password</label>
<input type="password" name="password" id="login_password" class="login_input" />
<input type="submit" name="login" value="login" id="login_submit" /><br />
<div id="register"><a href="https://www.cliki.net/site/register">register</a></div>
<input type="submit" name="reset-pw" value="reset password" id="reset_pw" />
</form>
</div>
</div>
</div>
</body></html>