S
Saravanan Sar
Hi,
When i tried to load the below mentioned code using rb_load_file it
works
def Category(pArg1)
lvalue = ("\"" + "CatA" + "\"" + pArg1)
eval "#{lvalue}"
end
def is(pArg1)
return "==\"" + pArg1 + "\""
end
i = Category(is('CatB'))
But when i changed the line
i = Category(is('CatB')) to
i = Category is 'CatB' #removing the brackets
rb_load_file crashes. btw i am using borland c++ 6.0
How to solve this problem?
Thanx in advance.
Cheers,
Saravanan A
When i tried to load the below mentioned code using rb_load_file it
works
def Category(pArg1)
lvalue = ("\"" + "CatA" + "\"" + pArg1)
eval "#{lvalue}"
end
def is(pArg1)
return "==\"" + pArg1 + "\""
end
i = Category(is('CatB'))
But when i changed the line
i = Category(is('CatB')) to
i = Category is 'CatB' #removing the brackets
rb_load_file crashes. btw i am using borland c++ 6.0
How to solve this problem?
Thanx in advance.
Cheers,
Saravanan A