Live data from Hacker News

What Time Is It on the International Space Station? (2013)

astronautabby.com

41–43 of 43 posts

Re: What Time Is It on the International Space Station? (2013)

#41

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…

There's also not a main(), and many other things whichs mean this clearly isn't usuable C. I read it as pseudocode.

Re: What Time Is It on the International Space Station? (2013)

#42

We 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.

...is it even allowed to set things on fire inside of ISS?

Re: What Time Is It on the International Space Station? (2013)

#43

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 I meant was to have them both point to the same data, but be different objects.

Sure, C wouldn't work that way, but it's just supposed to be pseudocode anyway.

Post reply on HN