﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
331	convert objects without an explicit type	imendez	Víctor de Buen Remiro	"Hi.

Now, TOL looks for the ""LastGrammar"" when an object hasn't an explicit type:

Set s1 = [[1, 2 ]];
Set s2 = [[ ""a"", ""b"" ]];
Real a = 1;
BinGroup(""+"", s1);
BinGroup(""<<"", s2);

The last line yields an error because the Text type is not explicit and the
previous type is Real instead of Text. The same reason makes line #4 works
perfectly.

I propose an enhancement in order to look for the ""DefaulGrammar"" when no type
is explicitly defined. In this example, TOL Evaluator should cast the resulting
object to Text type, because we can know that it must be the returned type,
since ""s2"" elements are of this type.

Regards."	enhancement	closed	normal		Kernel	head	minor	fixed		Alfredo Torre
