The QMetaObject is built at compile time in the read only section (like what moc does). CopperSpice builds it at run-time when the library is loaded. So CopperSpice takes more memory and load slower. With CopperSpice, you cannot declare your slot within the class definition. CopperSpice uses...
* */ val isWorthReading: Boolean get() = this.rating > 5 // set(value) { // A 'val'-property cannot have a setter! // // ERROR // } // In this sense, the property acts as a method when using a custom getter. /* * Now any consumers of the book class can read the inve...
* */ val isWorthReading: Boolean get() = this.rating > 5 // set(value) { // A 'val'-property cannot have a setter! // // ERROR // } // In this sense, the property acts as a method when using a custom getter. /* * Now any consumers of the book class can read the inve...