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 20 years ago

Closed 17 years ago

#277 closed enhancement (fixed)

Tcl_Eval (Tcl support with LoadLib)

Reported by: jimarin Owned by: danirus
Priority: normal Milestone:
Component: Various Version: head
Severity: minor Keywords:
Cc:

Description

If I do in tol.exe:

Set Tcl_Eval("set a 1");

I get:

<E>
ERROR: no ha sido posible convertir de Set hacia Real para el objeto $tmp$'</E>

Could tol.exe behave as tolbase in terms of handling tcl ?

I would really really like this feature...

Many thanks in advance

jima

Change History (6)

comment:1 Changed 20 years ago by danirus

Hi,

Could you try to execute the sentence using an equal operator?
I mean: Set someSet = Tcl_Eval("set a 1");

That's because you are getting an error message from the Evaluator. Due to a bad
inner design, the evaluator can use two different entry points, and the one used
by tol.exe doesn't work properly with the expression you are writting.

Once you write a valid sentence, using that = operator, probably you will get a
different error, the one you demand about Tcl support. This one will be solve in
a near future with "LoadLib" implementation.

We have no plans to change the way tol.exe executes sentences. The reason is the
backward compatibility that it must provide. tol.exe is an old way to lunch Tol
code in projects under production. Always we've talked about that somebody
suggest us to let tol.exe as it is.

Cheers

comment:2 Changed 20 years ago by jimarin

Hi,

following your advice, I tried

Set someSet = Tcl_Eval("set a 1");

Got

"Unimplemented", 0.000000 ?

I see no reason why we should think about tol.exe as the poor brother of
tolbase. To me it should just be the same thing with no gui on top.

Perhaps I am talking about a different tol.exe, not the old tool for under
construction projects but a variant that can be described as
tolbase_without_gui.

This would allow one to have this "tol.exe" as a script interpreter
without the burden of the gui which is valuable in the scope of specific
projects (like the ones I am involved with). Perhaps even without needing
to install all files from tolbase.

Does anyone know when the magic of LoadLib is to be implemented?

Many thanks !

jima

comment:3 Changed 20 years ago by danirus

Hi Jima,

About the sentence, now we have to accomplish Tcl_Eval support into tol.exe.
That should be in Tol in the next 2-3 months.

About concerns tol.exe as a powerful utility based on a Characters User
Interface, I really appreciate what you suggest but exist two problems: 1st. is
a backward compatibility problem, in the way tol.exe evaluates Tol expression,
and 2nd. is a problem of human resources working to build such a powerful tool
as Tolbase but characters based.

If you are looking for that characters based Tolbase under unix/linux, I can
tell you that in a short will be available a unix/linux utility written in C++
and based on ncurses, that replace tol.exe but only in those platforms, not on
Windows because unfortunately ncurses is not available there. With this
application you can inspect the whole API (every Tol type: Series, TimeSets,
Matrix, Set...), and also variables created in the session. You can
interactively compile/decompile code, lunch Tol application from the command
line, and it has an enhanced Tol sentence line editor. That will be available
with Tol-1.1.4.

About this active Bug, I suggest we could turn its subject to "Tcl support using
LoadLib", and severity to "enhancement" for Tol. Are you agree?

Cheers
Daniel

comment:4 Changed 20 years ago by jimarin

Nice to hear Linux takes the lead.

I totally agree on yor final remarks.

jima

comment:5 Changed 20 years ago by danirus

Severity: normalenhancement
Status: newassigned
Summary: Tcl_EvalTcl_Eval (Tcl support with LoadLib)

comment:6 Changed 17 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: assignedclosed

You have tolsh.exe to do this from version 1.1.5

Note: See TracTickets for help on using tickets.