close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#332 closed enhancement (fixed)

solving some problem with BinGroup

Reported by: imendez Owned by: danirus
Priority: normal Milestone:
Component: Kernel Version: head
Severity: minor Keywords:
Cc: Alfredo Torre

Description

Hi.

This code returns an error:

Set Cjto = "a", "b", "c" ?;
Set CjtoConTextoError = SetOfAnything(BinGroup("<<", Cjto));

ERROR: Algún elemento para la funcion BinGroup no es un objeto de tipo Anything

because "Cjto" elements are texts and BinGroup tries to return "Anything" type
objects. When BinGroup compares "Anything" and "Text" type objects, it returns
FALSE.

Regards.

Change History (3)

comment:1 Changed 19 years ago by imendez

Of course, Group function has the same problem:

Set CjtoConTextoError = SetOfAnything(Group("<<", Cjto));

And, if SetOfAnything is substituted by SetOfText, the code wroks perfectly:

Set CjtoConTextoError2 = SetOfText(BinGroup("<<", Cjto));

comment:2 Changed 19 years ago by danirus

Resolution: fixed
Status: newclosed

This is a suberror of the previous 331.
I resolved these problems with BinGroup and Group, since they're easy to find
and fix, bot for fix the previous I have to lay a plot...

Cheers,
Daniel

comment:3 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000331
dependson: 331
Note: See TracTickets for help on using tickets.