View · Search · Index
No registered users in community xowiki
in last 10 minutes

[Xotcl] Object eval Problem

From: Ben Thomasson <ben.thomasson_at_gmail.com>
Date: Wed, 4 Jun 2008 09:23:12 -0400

Hi,

I have a problem with the following code:

[xotcl-1.6.0]$ ./xotclsh
% ::xotcl::Object eval set a 5
5
% ::xotcl::Object eval ::xotcl::Object set a 5
5
% ::xotcl::Object eval ::xotcl::Object set
Segmentation fault


This line works fine:

::xotcl::Object eval ::xotcl::Object set a 5

This line causes a Segmentation fault:

::xotcl::Object eval ::xotcl::Object set

It should just throw an error.

This code is similar but does not have the problem:

[xotcl-1.6.0]$ ./xotclsh
% ::xotcl::Object eval ::xotcl::Object lappend a 5
5
% ::xotcl::Object eval ::xotcl::Object lappend
wrong # args: should be "lappend varName ?value value ...?"
% exit

This was on a fresh compile of Tcl8.4.19 and XOTcl1.6.0.

Let me know if you see this in your builds.

Thanks,

Ben