TCPPPL Chpt6: ISO C++ Standards

Apparently this chapter is like a law book. I will left this as a list and I will finish this later when I finish this book.

  • Implement defined features, unspecific, and undefined
  • Hosted vs Freestanding implementation
  • Source character set
  • int/pointer to bool
  • char impl defined signed/unsigned : ok to convert to unsign ed
  • int{c} construct int from a char
  • 3digit octal
  • multicharacter literal
  • Unicode
  • int –
  • prefix and suffix, user defined literals
  • constexpr in <limits>
  • <cstdint> for int with variance needs
  • alignof
  • declaration and definationm,
  • scope: refer to global and self init
  • {} in declaration
  • missing initializers
  • () and function
  • auto
  • decltype
  • lvalue and object, and rvalue
  • objects lifetime
  • read more

    Enough for Java. Let’s look at something new with C++

    Java is a good tool. It arranges everything for you and you don’t have to worry about the details. For those who do want to know about the details, it is interesting to dig a little bit into it. However, perhaps I don’t have time for it now.

    I tried Visual Basic when I was in middle school, but I didn’t really do anything nontrivial with it. Thanks to the university I attended for undergraduate courses, my first serious programming language was C. I am proud of this fact since in C you can handle many things in the hardware or OS level. You don’t have many shortcuts, which means you have to build it with your hand. That gave me much freedom to play with pointers to do things I could never imagine when I had to switch to Java when I was a Master student.

    I am happy to work with C++ now. C++ is not C with pointers, at least for Bjarne Stroustrup. I was surprised that he didn’t recommend pointer arithmetics and malloc for heap memories, which was very fun when I write C. After all, probably no one likes C++ in C styles. I will go check what C++ has for me. Heh.