Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14261
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: Sun Jun 08 01:26:03 CEST 2025

Total time taken to generate the page: 0.04261 seconds