comp.lang.tcl
[Top] [All Lists]

Re: Snit Problem- Invalid command name

Subject: Re: Snit Problem- Invalid command name
From: Ron Fox
Date: Fri, 30 May 2008 07:02:02 -0400
Newsgroups: comp.lang.tcl


You're missing the close } from the snit type.
See the } I added below.



% package require snit
1.0
% snit::type dog {
method speak {} {
return "$self barks"
}
}



--
Ron Fox
NSCL
Michigan State University
East Lansing, MI 48824-1321

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy