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

Re: [Xotcl] A question about parameter and default values.

From: Gustaf Neumann <neumann_at_wu-wien.ac.at>
Date: Sun, 27 May 2007 13:36:05 +0200

Dear Shishir,

You are right, this is a bug. If you can compile xotcl by yourself,
applying the attached patch will help. Alternatively (before the next
release), you can add the modified instproc "parameter" (from default.xotcl)
to your application, mayby guarding it with ...

   if {$::xotcl::version$::xotcl::patchlevel eq "1.5.3"} ...

The patch will be included in the next releases (both the
bug-fix release 1.5.4 and the next major release 1.6.0).
The test went as well into our regression tests.

best regards
-gustaf neumann


Shishir Ramam schrieb:
> I'm using ActiveState's 8.4 distribution on Windows XP, and am unable
> to explain the behaviour in the example below.
>
> Shouldn't '-exact' be allowed as the default initializer for match? It
> seems to have something to do with the
> leading '-' since removing it seems to create the class Foo without
> issue.
>
> Any help much appreciated.