Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 23-11-2009
Member
 
Join Date: Apr 2009
Posts: 87
Definition of a property line in a method

I want to know if it is possible to define a property in a method, because my method uses template and that has kept the value is not necessarily the same type. I would therefore like to define this property in this method. Is this possible? Thank you in advance.
Reply With Quote
  #2  
Old 23-11-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Definition of a property line in a method

This is normal, it must store the object .. able to call the member function. Basically your operator () would do this: return ((* pbj_) .* MemFun) (); But you got good template class should be so, handle multiple arguments. Basically reinventing function.
Reply With Quote
  #3  
Old 23-11-2009
Member
 
Join Date: Jan 2009
Posts: 199
Re: Definition of a property line in a method

Objective-C is a reflective, object-oriented programming language, which adds Smalltalk-style messaging to the C programming language. A class defined with define-objc-class has no methods associated with it by default, other than those inherited from the its ancestor classes.
Reply With Quote
  #4  
Old 23-11-2009
Member
 
Join Date: Dec 2008
Posts: 177
Re: Definition of a property line in a method

The generic functions is really something not to reinvent oneself. It's extremely complicated to write if you want something at least flexible, and is code to write (many specializations and overloads for combinations of types / classes / forms / function ... ). object can store multiple signal function and called all the methods.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Definition of a property line in a method"
Thread Thread Starter Forum Replies Last Post
Javascript Replace function - Object doesn't support this property or method Trini Alvarado Software Development 6 13-05-2010 12:11 PM
Method to return number of line Vodka Software Development 5 13-01-2010 02:48 PM
Definition Update for Windows Defender - KB915597 (Definition 1.3. prash_mate Windows Security 3 24-11-2009 11:51 PM
What is the property of dhtml innertext method Unnat Windows Software 3 12-08-2009 10:16 AM


All times are GMT +5.5. The time now is 07:42 AM.