Content deleted Content added
Folks, don't format ''dc'' source as ''Perl'' or ''bash'' source and expect good results |
m Fixed Lint errors on this page (obsolete/unclosed tags) |
||
(9 intermediate revisions by 8 users not shown) | |||
Line 1:
{{WikiProject
{{WikiProject Software|importance=Low}}
{{WikiProject Computing|importance=Low |early-comp=y |early-comp-importance=Low |software=y |software-importance=Low}}
{{WikiProject Linux|importance=Low}}
}}{{lowercase title}}
==Untitled==
I have been unable to find any libraries of functions for 'dc' (e.g., log, sin, etc). If someone finds some, please add external links.
Wouldn't it be better to use an example that actually works? Because when I type <br/>
I get<br/>
You miss-typed the example, the correct one is <br />
{{mono|1= 12 _3 4 ^ + 11 / v 22 -}}<br/>
After command {{mono|1=p}} you get<br />
{{mono|1=-20}} [[User:Annie Yousar|Annie Yousar]] ([[User talk:Annie Yousar|talk]]) 14:14, 15 March 2025 (UTC)
== Explanation ==
Can someone explain how the following works?<br />
: It encodes the email address in the hex constant
: Just did a small optimization (in code length) to it:
: : Sorry but I forgotten that we cannot construct a string in dc...but I have just figured out the way to construct the constant:
::Billyaukh missed the "e" in dc -e "16i0[80?d0!=x*+]dsxx10op" [[User:Annie Yousar|Annie Yousar]] ([[User talk:Annie Yousar|talk]]) 11:46, 2 February 2025 (UTC)
== Original implementation language? ==
Line 40 ⟶ 51:
This example, Perl source containing embedded dc source, was formatted with language-specific, syntax-aware color coding. While I personally find that the jarring color shifts make source code almost unreadable, I would have left this style in place were it not already meaningless:
# The Wikipedia renderer doesn't have a style for
# The renderer doesn't handle nested source.
# The renderer doesn't handle multiple languages in one block of code.
Line 49 ⟶ 60:
: Some more examples of bad coloring needed attention. Editors, in this article about dc, it isn't clearly an improvement to try to color-code <u>dc source</u> using the Perl style, or the bash style, or any other unrelated style. [[Special:Contributions/50.181.30.121|50.181.30.121]] ([[User talk:50.181.30.121|talk]]) 23:54, 24 April 2014 (UTC)
== External links modified ==
Hello fellow Wikipedians,
I have just modified {{plural:1|one external link|1 external links}} on [[Dc (computer program)]]. Please take a moment to review [https://en.wikipedia.org/w/index.php?diff=prev&oldid=753743945 my edit]. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit [[User:Cyberpower678/FaQs#InternetArchiveBot|this simple FaQ]] for additional information. I made the following changes:
*Added archive https://web.archive.org/web/20150408054606/http://cm.bell-labs.com/cm/cs/who/dmr/hist.html to http://cm.bell-labs.com/cm/cs/who/dmr/hist.html
When you have finished reviewing my changes, please set the ''checked'' parameter below to '''true''' or '''failed''' to let others know (documentation at {{tlx|Sourcecheck}}).
{{sourcecheck|checked=true}}
Cheers.—[[User:InternetArchiveBot|'''<span style="color:darkgrey;font-family:monospace">InternetArchiveBot</span>''']] <span style="color:green;font-family:Rockwell">([[User talk:InternetArchiveBot|Report bug]])</span> 22:52, 8 December 2016 (UTC)
== Name of the default register? ==
(named) Register = Stack of Arrays
So I can access a named register's TOS array via ":" and ";". This is fine. But I've an idea for something to code which massively would benefit if I could access the default register in the same way. So does it have a hidden name?
I'll read the source, if my impatience wins over my patience ... [[Special:Contributions/2003:DD:6F34:8975:F4A0:F975:5A7:A98E|2003:DD:6F34:8975:F4A0:F975:5A7:A98E]] ([[User talk:2003:DD:6F34:8975:F4A0:F975:5A7:A98E|talk]]) 12:33, 16 February 2025 (UTC)
|