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

#326 closed enhancement (fixed)

enhancement for BinGroup function

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

Description

Hi,

BinGroup function fails when its second argument is empty:

Set NoElementsSet = Copy(Empty);
Set OneElementSet = "hi" ?;
Set TwoElementsSet = "hi", " guy" ?;
Text NoElementsText = BinGroup("<<", NoElementsSet);
Text OneElementText = BinGroup("<<", OneElementSet);
Text TwoElementsText = BinGroup("<<", TwoElementsSet);

Warning: La función BinGroup ha fallado en :
BinGroup("<<", NoElementsSet)
ERROR: NoElementsText no se pudo crear.

I think it would be better if it doesn't fail when the Set argument is empty,
like EvalSet function.

Regards.

Change History (4)

comment:1 Changed 19 years ago by danirus

Hi Ivan,

And what do you suggest?
What has to do BinGroup when the given Set is empty?
-To return an empty object, or the Unknown whatever-Type object...

Cheers,
Daniel

comment:2 Changed 19 years ago by imendez

You are right, Dani, I think it must return the Unknown whatever-Type object,
and maybe a warning message, but not an error.

Thanks.
Regards.

comment:3 Changed 19 years ago by danirus

Resolution: fixed
Status: newclosed

This enhancement is now in the CVS.
Probably tomorrow will be in the Nightly Built Release.
Ivan, after tried it please confirm me here that it works as you expected.

Cheers,
Daniel

comment:4 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_000326
Note: See TracTickets for help on using tickets.