Earlier quoted context omitted.
Think of it as two pointers referencing the same data: Time* UTC = Time(0); Time* GMT = *UTC; *UTC == *GMT; // True UTC == GMT; // False
Your example with pointers actually wouldn't compile, and I think the analogy you are trying to make is not accurate. On the second line you are assigning the target address of `GMT` to be the value pointed to by UTC. In other words you are trying to assign a value of type "Time" to an object to type "Pointer-to-Time". If, however you meant for that line to be: Time *GMT = UTC; it would compile fine, but then your se…
What Time Is It on the International Space Station? (2013)
41–43 of 43 posts
Re: What Time Is It on the International Space Station? (2013)
#42We spent a lot of time at Yeshiva discussing when a Jew in space, or on Mars, or on a planet orbiting Alpha Centauri (for example) would have to light Shabbos candles or celebrate Yom Kippur. This issue has already come up with Jewish astronauts on the Space Station.
Re: What Time Is It on the International Space Station? (2013)
#43Earlier quoted context omitted.
Think of it as two pointers referencing the same data: Time* UTC = Time(0); Time* GMT = *UTC; *UTC == *GMT; // True UTC == GMT; // False
Your example with pointers actually wouldn't compile, and I think the analogy you are trying to make is not accurate. On the second line you are assigning the target address of `GMT` to be the value pointed to by UTC. In other words you are trying to assign a value of type "Time" to an object to type "Pointer-to-Time". If, however you meant for that line to be: Time *GMT = UTC; it would compile fine, but then your se…
Sure, C wouldn't work that way, but it's just supposed to be pseudocode anyway.