Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Sigil (computer programming)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Literal affixes=== While sigils are applied to names (identifiers), similar prefixes and suffixes can be applied to [[Literal (computer programming)|literals]], notably [[integer literal]]s and [[string literal]]s, specifying either how the literal should be evaluated, or what data type it is. For example, <code>0x10ULL</code> evaluates to the value 16 as an unsigned long long integer in C++: the <code>0x</code> prefix indicates hexadecimal, while the suffix <code>ULL</code> indicates unsigned long long. Similarly, prefixes are often used to indicate a [[raw string]], such as <code>r"C:\Windows"</code> in Python, which represents the string with value <code>C:\Windows</code>; as an escaped string this would be written as <code>"C:\\Windows"</code>. As this affects the semantics (value) of a literal, rather than the syntax or semantics of an identifier (name), this is neither stropping (identifier syntax) nor a sigil (identifier semantics), but it is syntactically similar.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)