Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lostmsu
on Dec 27, 2019
|
parent
|
context
|
favorite
| on:
Single-Assignment C
This sounds like an implementation detail. What does the language spec say about the outcome.
a1369209993
on Dec 28, 2019
|
next
[–]
The (C) language spec says that:
x = 5; int* p = &x; x = 6; // new binding of x printf("%i\n",*p);
prints "6". If new bindings lived at different addresses, it would print "5".
AgentME
on Dec 27, 2019
|
prev
[–]
Different bindings are like entirely different variables that just coincidentally share the same name.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: