Deutsch   English   Français   Italiano  
<ygaikkk9otq.fsf@akutech.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Ralf Fassel <ralfixx@gmx.de>
Newsgroups: comp.lang.tcl
Subject: Re: failing to understand/use lambda
Date: Wed, 25 Jun 2025 11:02:09 +0200
Lines: 20
Message-ID: <ygaikkk9otq.fsf@akutech.de>
References: <103gakv$2l8ta$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net ldoEhUvUx87xhQeLYiIOIwFxke82Kbbb20mWm1YSajYXg3Hbg=
Cancel-Lock: sha1:71+JE9fIJ+jt25AmbhaMkdKCCKQ= sha1:MdTUcMTP621nZGJUGUG0I4JWLcM= sha256:oKD7SCT6g7Sn21HOnk+M5hp7irqCmCXNj99URep+U2Q=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

* Mark Summerfield <m.n.summerfield@gmail.com>
| oo::define Store method add {args} {
|     puts "action: adding [llength $args] new files"
|     $Reporter "adding [llength $args] new files"
| }
--<snip-snip>--
| Actual output:
>
| action: adding 3 new files
| invalid command name "::apply {message { puts "reporter: $message" }}"

Note that I have no experience with lambda(n), but the error message
sounds like you need

  {*}$Reporter "adding ..."

when calling the reporter (i.e. expand the command being called).

HTH
R'