[Gambas-user] LIKE Operator Not working?
Benoit Minisini
gambas at ...2...
Sat Aug 30 23:06:33 CEST 2003
Le Samedi 30 Août 2003 14:57, R Onstenk a écrit :
> Hi Benoit
>
> I just had a sneak peak in pcode_th and in the beginning of PCODE_dump()
> there are two static lines one for *op_comp and one for *op_arith
> While I have made in the past also a basic intrpreter on the Z80 cpu I
> was currious how you did it with the p-code thing.
> As far I know the operator LIKE should be of the kind of op_comp
> while op_arithe are real mathematical relational expressions
> I did found however LIKE as op_arith and I beleave it should by op_comp
>
> This is from the 0.63 code.
> While I did read something about not corret working LIKE I thought I
> should inform you about it.
> Can you confirm me that my conclusion is correct?
>
> --------------
> Greeting Ron
>
PCODE_dump() is just used for dissassembling p_code. It has nothing to do with
p-code interpretation.
The two arrays op_comp[] and op_arith[] should be only one array, there is no
difference in their use by PCODE_dump. I don't remember why I splitted the
operators in two arrays. Maybe because at the beginning, not every opcode
were used ?
If you want to read the LIKE interpretation routines, you have SUBR_like() in
subr_string.c and the regexp.c module.
So you are wrong :-) But the code of PCODE_dump is far from being beautiful !
I'm happy that ONE people read my code :-)
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list