View Full Version : Convert a function to string
theflash 04-14-2009, 08:32 PM Is there a built in command to convert a declared proc to string? Or how can I write my own function to do that?
Hmmmm I can think of doing file read operation if the proc is in a separate file.
Any other ideas?
Thanks
|
|
claydough
04-15-2009, 04:34 AM
Do you mean like:
proc twoPSpheres()
{
polySphere;
polySphere;
}
{
string $twoPSpheresCmd = " print \" where dem shpere's at? \\n\"; twoPSpheres; ";
eval $twoPSpheresCmd;
}
ewerybody
04-15-2009, 08:41 AM
Is there a built in command to convert a declared proc to string? Or how can I write my own function to do that?What does that mean?!
Actually I'd just say NO!
A proc is like a command. It has functionallity. It can do stuff. You call it, it does things.
A string is just a collection of letters, a variable. It can be used in a procedure or by a command.
They are very different things!
Better try to tell us what you want to do :D
maybe then we can tell you how to do it :)
cbamber85
04-15-2009, 11:48 AM
Or do you mean something like 'pickling' in Python?
CGTalk Moderation
04-15-2009, 11:48 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.