• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
eval?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

eval?


  • Subject: eval?
  • From: Louis-Philippe <email@hidden>
  • Date: Mon, 31 May 2010 13:11:05 -0400

Correct me if I am wrong, but there is no way in objective-c to do a runtime
string execution for which the responding object is not an Objective-C
class?

like, if I have a c++ lib I would like to call from within an Objective-c
class, assuming a call like:

const char * retValue = MyExtLib::ExtLibSymbol;

I would like to be able to dispatch dynamically, something like:

const char * retValue = eval( [NSString
stringWithFormat@"MyExtLib::%@",symbolString]
);

any thoughts on making this possible?
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: eval?
      • From: Jens Alfke <email@hidden>
    • Re: eval?
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: UTI strings
  • Next by Date: Re: Which color space?
  • Previous by thread: Re: NSNetService - send data to printer
  • Next by thread: Re: eval?
  • Index(es):
    • Date
    • Thread