U++ framework
Do not panic. Ask here before giving up.

Home » Community » Coffee corner » Little Quiz
Re: Little Quiz [message #57769 is a reply to message #57757] Fri, 10 December 2021 22:22 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
the inner ~ is
DropList::operator ~

which inherits
Value Ctrl::operator ~()(maybe const modifier?)


the outer ~ is
String Value::operator~()(const modifier?)


the * cause a auto type cast be called
String::operatr const char * ()(modifier?);

and then dereference of the returned constant char * returns the first char in the String.

something like
Value t1=~dl;
String t2=~t1;
const char* t3=(const char*)t2;
char t4=*t3;
if(t3=='$')

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Now this is pretty cool
Next Topic: Quiz #4
Goto Forum:
  


Current Time: Thu Oct 15 21:18:37 GMT+2 2026

Total time taken to generate the page: 0.00646 seconds