Reply to topic  [ 1 post ] 
yeti : h_evaluator ; function name from array argument 
Author Message
Yorick Guru

Joined: Thu May 10, 2007 12:07 pm
Posts: 62
Post yeti : h_evaluator ; function name from array argument
This is the same "kind of" little bug I mentioned for is_string before.
See this example :

Code:
> names = ["header", "data"];
> evaluators = ["header_evaluator", "data_evaluator"];
> h =h_new();

> for(i=1; i<=2; i++) { h_set, h, names(i), h_new() ; }
> for(i=1; i<=2; i++) { h_evaluator, h_get( h, names(i)) , evaluators(i) ; }
ERROR (*main*) evaluator must be a function or a valid symbol's name
WARNING source code unavailable (try dbdis function)
now at pc= 13 (of 50), failed at pc= 33
To enter debug mode, type <RETURN> now (then dbexit to get out)


h_evaluator, h, evaluators(1); do NOT work (return the error above),
but h_evaluator, h, (ev=evaluators(1)); WORKS


Thu Feb 21, 2008 1:35 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.