> The function foo takes a const pointer, which is a promise from the author of foo that it won’t modify the value of x. Given this information, it would seem the compiler may assume x is always zero, and therefore y is always zero.
The following is a foo function that take a constant pointer:
void foo(int *const x);
If you point x to another adress inside foo function, it will not compiled.
The author seems think that
void foo(cont int *x);
is function that takes a constant pointer which is wrong, it is a function that takes pointer to constant object. In this case, it is legal if you point x to another address in memory inside foo function.
A minimal, service oriented, includeable library operating system for cloud services
I think the operating system for cloud services is need to be able to run heterogeneous system. Which Mesos & CoreOS are headed towards this idea via containerization.
Why build an OS that only run a C++ for cloud services? Is there any use case/problems that the author trying to solve?
I like the idea. but, it turns out that the author is kind of "epic fail" because he exactly copying the landing page of rooms like other HNers described in the comment.
I don't know the landing page of rooms.me before. after reading the comments on this thread, i feel disappointed to the author of this app.