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

Home » Developing U++ » U++ Developers corner » What about LUA plugin?
Re: What about LUA plugin? [message #5230 is a reply to message #5229] Mon, 11 September 2006 01:49 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
thierry wrote on Sun, 10 September 2006 19:39

No no you have missed it Wink

void Xmlize(XmlIO xml, C& var) {
// Did C tell you were a friend? No? Back off then !
}

Defining a function overriding the template doesn't give access to C protected/private member, so you have to modify C either to make a friend void Xmlize(XmlIO xml, C& var) or to implement it as C::Xmlize(), which I then tend to prefer.



A valid point. Usually, you can setup the value of instance based on its methods (think std::string), but you are right that this is not a rule. Anyway, once properties are not public, there is no other means to access them than method....

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: C strings
Next Topic: A new way how to create "plugin"
Goto Forum:
  


Current Time: Tue May 05 08:41:57 GMT+2 2026

Total time taken to generate the page: 0.00771 seconds