ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Bolshakov <sbolshakov@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Вопрос знатокам Tcl/Tk
Date: Thu, 05 May 2005 13:20:02 +0400
Message-ID: <m33bt2ghbx.fsf@hammer.malta.altlinux.ru> (raw)
In-Reply-To: <4279DF08.9050501@newmail.ru> (cetus@newmail.ru's message of "Thu, 05 May 2005 12:53:28 +0400")

>>>>> "cetus" == cetus  <.> writes:

 >     Уважаемые знатоки!
 > А не подскажет ли кто, что могло сломаться или поменяться в Tcl/Tk
 > где-то между Master 2.0  и Master 2.2?

 > Поясню суть вопроса: есть скрипт, который работает в Spring 2001 и
 > Master 2.0. Под Master 2.2/2.4 для запуска скрипта требуется внесение
 > исправлений, без которых он вываливается с ошибками. В основном
 > это замена двойных кавычек на фигурные скобки:

 > -       catch "$le subwidget entry insert 0 [set ::$varname]"
 > +       catch {$le subwidget entry insert 0 [set ::$varname]}

 > -        foreach v [getopt $varname] "$le appendhistory $v"
 > +        foreach v [getopt $varname] {$le appendhistory $v}

 > Здесь не понравились скобки квадратные:

 > -    if {[catch [set variable_props($varname)]]==0} {
 > +    if {[catch {set variable_props($varname)}]==0} {

 > Из беглого взгляда в доку по Tcl/Tk я сделал единственный вывод:
 > конструкции до и после исправления эквивалентны. Однако результат
 > зависит. Измененная версия работает везде.

 > Есть ли основания пинать разработчиков скрипта?

Конструкции не эквивалентны, поскольку порядок обработки
подвыражений различен. Таким образом, основания пинать
весьма веские. 

-- 


  reply	other threads:[~2005-05-05  9:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-05  8:53 "А.Китайкин"
2005-05-05  9:20 ` Sergey Bolshakov [this message]
2005-05-05 12:42   ` "А.Китайкин"
2005-05-05 13:14     ` Sergey Bolshakov
2005-05-05 15:55       ` "А.Китайкин"

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m33bt2ghbx.fsf@hammer.malta.altlinux.ru \
    --to=sbolshakov@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git