[TCL/TK interface] Passing variable to TCL/TKHi,
I am trying to sent to a variable to tcl/tk and unify there it with a
string.
I wrote the prolog code:
:- use_module(library(tcltk)).
:- use_package(classic).
go(A):-
tk_new([name('Simple')], Tcl),
tcl_eval(Tcl, 'source simple2.tcl', _),
tcl_eval(Tcl, ['ask', br(write(A))], _),
tk_main_loop(Tcl),
tcl_delete(Tcl).
and the tcl file simple2.tcl
proc ask {var} {
unify_term $var my_value
}
unfortunatelly when I query for
go(S).
the interpeter goes into a loop (!?).
Where I am wrong.
Are there any example code somewhere i...
tcl-mmap: A POSIX mmap interface for Tcl. (Tcl package)This is an announcement for a relatively new Tcl project: tcl-mmap
Tcl-mmap is a Tcl interface to the POSIX mmap* system call. It provides
a Tcl package that allows Tcl scripts to: 1) Memory map files for
improved access efficiency; 2) Share memory between related processes;
3) Easily implement cyclic persistent log files.
* See the mmap(2) man page.
Platform: Linux/Unix
Home page: http://sourceforge.net/projects/tcl-mmap/
Man page: http://tcl-mmap.sourceforge.net/
Author: Alexandros Stergiakis
On Sep 3, 11:48=A0am, Alexandros Stergiakis <alst...@gmail.com> wrote:
> This is an announcement for a relatively new Tcl project: tcl-mmap
>
> Tcl-mmap is a Tcl interface to the POSIX mmap* system call. It provides
> a Tcl package that allows Tcl scripts to: 1) Memory map files for
> improved access efficiency; 2) Share memory between related processes;
> 3) Easily implement cyclic persistent log files.
>
> * See the mmap(2) man page.
>
Great to see this and the other packages you made.
Looking at the manpage it looks a bit misformatted before the usage
example.
Any specific reason to use GPL for this instead the usual Tcl/MIT/BSD
style license used?
Michael
schlenk wrote:
> On Sep 3, 11:48 am, Alexandros Stergiakis <alst...@gmail.com> wrote:
>> This is an announcement for a relatively new Tcl project: tcl-mmap
>>
>> Tcl-mmap is a Tcl interface to the POSIX mmap* system call. It provides
>> a Tcl package that...
how to access prolog from tcl?hi, dear friends,
I am now doing my thesis project relate to mobile agent technology
which need to access prolog from tcl.
There are a lot of prologs which have the function to access tcl
from prolog, but I need to access prolog from tcl.(I can not use the
method that first load prolog, then access tcl via the interface, and
reload prolog).
So is there any one can help me or give me some tips to solve this
problem?
Now I can only found one article to solve this
problem(http://tkoutline.sourceforge.net/wiki/38). I tried the code,
but unfortunately, the terminal always crashed and did not give any
response when I run the second command of its example---"%
prolog::init". I could run the command of "plcon -s interp.pl -t main
-q" in DOS terminal without problem. Originally I thought it is the
version problem of tcl, so I changed it from 8.4.9 to 8.0.3, but the
problem was still there. My SWI-prolog version is 3.1.2. My operating
system is winXP.
I am now very nervous about that, Please give me some help to solve
this problem, or tell me some other way to access prolog from tcl.
Thank you very much
I did not give up the solution of
(http://tkoutline.sourceforge.net/wiki/38).
Now I changed SWI-prolog version to 5.4.4. When I run the second
command(prolog::init) of the example from wish.exe, it pop up a
window, said that
Prolog interpreter closed unexpectedly
Prolog interpreter closed unexpectedly
while executing
"error "Prolog interpreter clos...
Opening a TCL program from within another TCL program in ANSYS Tcl-TkHi everyone,
I have been pulling my hair with this one for a couple of days and
still have not found a fix. I'm working within ANSYS Tcl-Tk
implementation.
I created a Tcl-Tk script that generates a simple window with three
buttons. Each button opens another window which is created in a
separate Tcl file. The second window have a lot of text entries,
variables, procedures, etc. I can open the second Tcl file by itself
and everything works as supposed, but when I open it using the button
in the first window, it opens but any procedure called by the widgets
on the second window are not found...
Here's the deal... Since I'm working within the ANSYS implementation
of Tcl-Tk, I'm actually using an ANSYS command to open the second
window. The command I use is:
###
ans_sendcommand ~eui,'source O:/mad_projects_2/ANSYS/Macros/
IBR_CAS.tcl'
###
It actually sends a command back to ANSYS telling it to execute a Tcl
command... I know this is not pretty but its the only way i was able
to make it at least show the window.
##############################
#Main Tcl (excerpt):
##############################
namespace eval Tools {
proc IBRCambpell {} {
#source O:/mad_projects_2/ANSYS/Macros/IBR_CAS.tcl
ans_sendcommand ~eui,'source O:/mad_projects_2/ANSYS/Macros/
IBR_CAS.tcl'
}
proc viewManager {} {
ans_sendcommand ~eui,'source O:/mad_projects_2/ANSYS/Macros/
ViewManager.tcl'
}
proc powerAnnotation {} {
ans_sendcommand ~eui,'source ...
tcl-pam: PAM authentication for Tcl (Tcl package)This is an announcement for a relatively new Tcl project: tcl-pam
Tcl-pam is a Tcl interface to the PAM* service of Linux. It provides a
Tcl package that allows Tcl scripts to use PAM to authenticate users and
programs. It relies on linux-pam library:
http://www.kernel.org/pub/linux/libs/pam/
* PAM (Pluggable Authentication Modules): A mechanism to integrate
multiple low−level authentication schemes into a high−level application
programming interface (API). This enables programs that rely on
authentication to be written independently of the underlying
authentication scheme.
Platform: Linux
Home page: http://sourceforge.net/projects/tcl-pam/
Man page: http://tcl-pam.sourceforge.net/
Author: Alexandros Stergiakis
alsterg
...
Tcl interface with SWI-Prolog?Hello all
Does anyonw know if there a interface to invoque SWI-Prolog from tcl.
Thanks in advance
...
tcl-gaul: Genetic Algorithms for Tcl. (Tcl package)This is an announcement for a relatively new Tcl project: tcl-gaul
Tcl-gaul is a Tcl extension for genetic/evolutionary algorithm
processing.It relies on the GAUL library: http://gaul.sourceforge.net/
* A genetic algorithm (GA) is a search technique used in computing
to find exact or approximate solutions to optimization and search
problems. Genetic algorithms are categorized as global search
heuristics. They are a particular class of evolutionary algorithms
that use techniques inspired by evolutionary biology such as
inheritance, mutation, selection, and crossover. For an introduction to
genetic algorithms visit: http://gaul.sourceforge.net/intro.html
Platform: Linux (GAUL library dependency)
Home page: http://sourceforge.net/projects/tcl-gaul/
Man page: http://tcl-gaul.sourceforge.net/
Author: Alexandros Stergiakis
alsterg
...
Debugger for Tcl/Tk and [incr Tcl]
hi,
where can i get Coverage for debugging tcl/tk, [incr Tcl] source?
this tool is advised to use in 'Practical Programming in Tcl and Tk'
or any other good debugger, which i could use?
best,
s.
On Jan 23, 5:56=A0am, Sitaca <sit...@gmail.com> wrote:
> hi,
>
> where can i get Coverage for debugging tcl/tk, [incr Tcl] source?
> this tool is advised to use in 'Practical Programming in Tcl and Tk'
>
> or any other good debugger, which i could use?
I see, at http://wiki.tcl.tk/8638 , a brief reference to the topic of
coverage for tcl. I don't know whether or not any of the tools
mentioned include coverage of itcl.
On 23 jan, 12:52, "Larry W. Virden" <lvir...@gmail.com> wrote:
> On Jan 23, 5:56=A0am, Sitaca <sit...@gmail.com> wrote:
>
> > hi,
>
> > where can i get Coverage for debugging tcl/tk, [incr Tcl] source?
> > this tool is advised to use in 'Practical Programming in Tcl and Tk'
>
> > or any other good debugger, which i could use?
>
> I see, athttp://wiki.tcl.tk/8638, a brief reference to the topic of
> coverage for tcl. I don't know whether or not any of the tools
> mentioned include coverage of itcl.
I have a more complete version of the coverage tool mentioned on
that page. I just never got around to publishing it more widely.
As for debuggers: the Wiki has a lot of pointers on that subject
as well.
Regards,
Arjen
Larry W. Virden wrote:...
YouTube Playlist: Tcl/Tk Object Oriented Programming Using Itcl (incr Tcl) LessonsHi.
Like I promised you hours ago..
The playlist in English :
https://www.youtube.com/playlist?list=PLsAEIIjTPIo_1qeuc-rYwk0nxWAM38Dl_
The same playlist in Arabic :
https://www.youtube.com/playlist?list=PLsAEIIjTPIo_91kA-iUz_5XGNmHzivHBG
Enjoy!
On Saturday, January 17, 2015 at 4:04:21 PM UTC+2, Rani Ahmad wrote:
> Hi.
>
> Like I promised you hours ago..
>
> The playlist in English :
>
> https://www.youtube.com/playlist?list=PLsAEIIjTPIo_1qeuc-rYwk0nxWAM38Dl_
>
> The same playlist in Arabic :
>
> https://www.youtube.com/playli...
tcl-syslog: Unix system logging for Tcl (Tcl package)This is an announcement for a relatively new Tcl project: tcl-syslog
Tcl-syslog is a Tcl interface to the *nix syslog service. It provides a
Tcl package that allows Tcl scripts to log messages to syslog.
Platform: Linux/Unix
Home page: http://sourceforge.net/projects/tcl-syslog/
Man page: http://tcl-syslog.sourceforge.net/
Author: Alexandros Stergiakis
alsterg
...
tcl-mq: POSIX Message Queues for Tcl. (Tcl package)This is an announcement for a relatively new Tcl project: tcl-mp
Tcl-mp is a Tcl interface to POSIX Message Queues*. It provides a Tcl
package that allows scripts to create/open/close/unlink multiple
parallel message queues, and to send/receive messages synchronously and
asynchronously to/from them.
* A POSIX message queue is an Inter-Process Communication mechanism
available on Linux and some other POSIX-compliant operating systems. It
allows to or more processes (or threads) to communicate under the
same OS. The messages are buffered by the kernel, which gives them
kernel persistency. A message queue can be thought of as a linked list
of messages. Threads with adequate permission can put messages onto the
queue, and threads with adequuate permission can remove messages from
the queue. Each message is assigned a priority by the sender, and the
oldest message of highest priority is always retrieved first. Unlike
PIPES and FIFOS, no requirement exists that someone be waiting for a
message to arrive on a queue, before some process writes a message
to that queue. It's not even a requirement for both processes to exist
at the same time. Read mq_overview(7) for more details
Platform: Linux
Home page: http://sourceforge.net/projects/tcl-mp/
Man page: http://tcl-mp.sourceforge.net/
Author: Alexandros Stergiakis
alsterg
On Sep 3, 11:37=A0am, Alexandros Stergiakis <alst...@gmail.com> wrote:
> This is an announcement for a relatively new Tcl pro...
Incr Tcl /Tk for Tcl 8.4Hi,
I am trying to download incr Tcl and incr Tk for Tcl/Tk 8.4.19.
I looked at:
http://sourceforge.net/projects/incrtcl/files/%5BIncr%20Tcl_Tk%5D-source/3.4.1/
But only itcl seems to be there. And the CVS doesn't have the 3.4.1
tag.
Do you know where I can get incr Tk and hopefully a corresponding
iwidgets?
Thanks,
Andres
On 5 Okt., 11:16, Andres Garcia <tclc...@gmail.com> wrote:
> Hi,
>
> I am trying to download incr Tcl and incr Tk for Tcl/Tk 8.4.19.
>
> I looked at:
>
> http://sourceforge.net/projects/incrtcl/files/%5BIncr%20Tcl_Tk%5D-sou...
>
> But only itcl seems to be there. And the CVS doesn't have the 3.4.1
> tag.
There is no tag for this version. But you can use a date.
cvs -d :pserver:anonymous@incrtcl.cvs.sourceforge.net:/cvsroot/incrtcl
-z3 co -P -D 2010-10-28 incrTcl
>
> Do you know where I can get incr Tk and hopefully a corresponding
> iwidgets?
Itk is inside itcl sources.
cvs -d :pserver:anonymous@incrtcl.cvs.sourceforge.net:/cvsroot/incrtcl
-z3 co -P -D 2010-10-28 iwidgets
HTH
rene
Thanks.
Andres
>> I am trying to download incr Tcl and incr Tk for Tcl/Tk 8.4.19.
>>
>> I looked at:
>>
>> http://sourceforge.net/projects/incrtcl/files/%5BIncr%20Tcl_Tk%5D-sou...
>>
>> But only itcl seems to be there. And the CVS doesn't have the 3.4.1
>> tag.
The released sources for Itcl 3.4.1 were not developed in SF CVS.
SF CVS got abandoned during the January...
Newbie to Tcl/Tk: Question about Tcl and VxWorks....Hello All,
I have tried looking on the offical tcl/tk website and also at WindRiver's
without success. Please forgive my ignorance on this, but is tcl/tk
available for VxWorks or is there in progress a port going on.
Many thanks in advance,
Richard
"Richard Latter" <richard_l@latter.demon.co.uk> writes:
> I have tried looking on the offical tcl/tk website and also at WindRiver's
> without success. Please forgive my ignorance on this, but is tcl/tk
> available for VxWorks or is there in progress a port going on.
I have ancient Tcl 7.3 here, but don't know of newer ports.
Donald Arseneau asnd@triumf.ca
...
In Tcl and C++ code, how to use Tcl Command, such as exit?In my code, i used Tcl_SetStdChannel(0, STDIN) and a thread to control
all input and output from Tcl, but i want to use some of Tcl' Commands,
such as, exit.
I used Tcl_Eval() then, but the Tcl command seem invisible in my code,
I typed a string in command prompt, such as "AAAAA", and Enter, got
nothing feedback.
How can i do to get these Tcl Commands work?
Thanx!
vian1381@china.com.cn wrote:
> In my code, i used Tcl_SetStdChannel(0, STDIN) and a thread to control
> all input and output from Tcl, but i want to use some of Tcl' Commands,
> such as, exit.
>
> I used Tcl_Eval() then, but the Tcl command seem invisible in my code,
> I typed a string in command prompt, such as "AAAAA", and Enter, got
> nothing feedback.
Your questions are hard to understand, but they suggest that you
believe that setting a custom stdin channel will do some magic to
establsh a prompt/read/eval loop. That is not the case.
> How can i do to get these Tcl Commands work?
Start with something that works, like the source code for tclsh,
and adapt to your needs.
Or post a followup and include more code examples to explain
what you're doing and how it doesn't do what you expect.
--
| Don Porter Mathematical and Computational Sciences Division |
| donald.porter@nist.gov Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|_____________________________________...
Tcl+incr Tcl debuggers to use on command line?Hi,
Does anyone know of incr Tcl supported debuggers that work on command line?
That is, without needing bundling with IDEs?
Thanks
On 10/11/14, 9:46 PM, kenneth.bull@gmail.com wrote:
> Hi,
>
> Does anyone know of incr Tcl supported debuggers that work on command line?
> That is, without needing bundling with IDEs?
Well, the debugger in ActiveState's TDK does not need a bundled IDE and it
works with [incr Tcl] -- but it is a GUI application not a command line one.
--
+------------------------------------------------------------------------+
| Gerald W. L...
Will tcl 9 use epoll or kqueue for tcl?curious
http://luvit.io/ also check this out for web stuff done in lua but perhaps tcl can steal nice ideas
On Wednesday, January 2, 2013 3:22:02 PM UTC-8, gavino_himself wrote:
> curious
>
>
>
> http://luvit.io/ also check this out for web stuff done in lua but perhaps tcl can steal nice ideas
cherokee uses them so gota be ast for events and cherokee outperforms nginx
...
tcl/tk unicode wie kann man formel/math. zeichen in tk unter tcl anzeigen lassen?Hallo,
ich schreibe gerade an einen programm, dass auf windows unix und
vielleicht auch anderen plattformen laufen soll. es sollen auch
mathematische zeichen wie alpha 'm�' etc. dargestellt werden. mit
welchen zeichensatz (vielleicht unicode) kann man dies realisieren?
funktioniert es mit einen zeichensatz f�r alle plattformen unabh�ngig?
English summary for the rest of the world:
sven.rega@gmx.de would like to use mathematical symbols like "mu" in
Tk applications. He asks if Unicode is the solution and whether that
works on all platforms.
I assert that Unicode works since Tcl 8.1 and that UCN syntax like
\u00B5 is the way to go with symbols hardcoded in Tcl scripts.
I point him to "charmap.exe" (Windows), "Character Palette" (Mac OS X)
or generically to <http://www.unicode.org> to find out the Unicode
code points.
----------------
Hi,
Versuch doch bitte beim n�chsten Mal auf Englisch zu fragen, sonst
kann Dir nur ein Bruchteil der Leute hier folgen.
sven.rega@gmx.de (xfan) writes:
> ich schreibe gerade an einen programm, dass auf windows unix und
> vielleicht auch anderen plattformen laufen soll. es sollen auch
> mathematische zeichen wie alpha 'm�' etc. dargestellt werden. mit
> welchen zeichensatz (vielleicht unicode) kann man dies realisieren?
Ja, das funktioniert mit Unicode in Tcl seit Version 8.1.
> funktioniert es mit einen zeichensatz f�r alle plattformen
> unabh�ngig?
Das ist die ...
Using Tcl/Tk as a user interface in a C programHi,
i thought this question would come up every day, but i read this
NG for a while and haven't seen it since.
What i'd like to do is use Tcl/Tk in a standalone (linked against
Tcl and/or Tk libs) C program.
I'd like to open Windows and call Tcl scripts from C that handle
the windows. I wouldn't like to have external scripts called, but
i'd like to embed it in the C program.
Has anybody got a short example for that (Linux / Windows)?
Thanks for any hints,
Torsten.
MkTclApp is your friend:
http://www.hwaci.com/sw/mktclapp/index.html
Pretty simple, really.
On Tue, 18 Nov 2003, Torsten Mohr wrote:
> Date: Tue, 18 Nov 2003 20:05:35 +0100
> From: Torsten Mohr <tmohr@s.netic.de>
> Newsgroups: comp.lang.tcl
> Subject: Using Tcl/Tk as a user interface in a C program
>
> Hi,
>
> i thought this question would come up every day, but i read this
> NG for a while and haven't seen it since.
>
> What i'd like to do is use Tcl/Tk in a standalone (linked against
> Tcl and/or Tk libs) C program.
>
> I'd like to open Windows and call Tcl scripts from C that handle
> the windows. I wouldn't like to have external scripts called, but
> i'd like to embed it in the C program.
>
> Has anybody got a short example for that (Linux / Windows)?
>
>
> Thanks for any hints,
> Torsten.
>
>
* Torsten Mohr <tmohr@s.netic.de>
| I'd like to open Windows and call Tcl sc...
tcl-snmptools: SNMP v1/v2/v3 operations for Tcl. (Tcl package)This is an announcement for a relatively new Tcl project: tcl-snmptools
Tcl-snmptools is a Tcl interface to the Net-SNMP library which provides
operations for the management of remote SNMP agents. It supports all the
standard SNMP v1/v2/v3 operations: connect, close, get, set, getnext,
walk, bulkget, bulkwalk, trap, translate and others.
It is currently in a functional state, but more work and testing needs
to be done.
Home page: http://sourceforge.net/projects/tcl-snmptols/
Man page: http://tcl-snmptols.sourceforge.net/
Author: Alexandros Stergiakis
alsterg
...
E.J. Friedman-Hill's Tcl/Tk CourseE.J. Friedman-Hill's Tcl/Tk Course
Tcl/Tk Programming in Five Easy Lessons
http://www.linbox.com/ucome.rvt/any/doc_distrib/tcltk-8.3.2/TclCourse/
I am unable to open the ppt files that seem very promising. Can anyone
see what is the problem with them and can convert/fix so that I can
open in the office 2007 or open office ?
Thanks
Bolega
On 24/03/2011 2:51 AM, bolega wrote:
> E.J. Friedman-Hill's Tcl/Tk Course
> Tcl/Tk Programming in Five Easy Lessons
>
> http://www.linbox.com/ucome.rvt/any/doc_distrib/tcltk-8.3.2/TclCourse/
>
> I am unable to o...
How to compile tcl or encrypt tclI use TclPro1.5 to compile my tcl script with tixwish in the Solaris before.
But I cannot use the same method in Linux. Why?
Is there any utility for me to compile or encrypt the code by using tixwish?
The following is the simple code if I use the tixwish:
#!/home/albertl/local/bin/tixwish
puts "haha"
And after using procomp by the TclPro1.5
Error in startup script: The TclPro ByteCode Loader is not available or does not support the correct version
while executing
"error "The TclPro ByteCode Loader is not available or does not support the correct version""
invoked from within
"if {[catch {package require tbcload 1.3} err] == 1} {
error "The TclPro ByteCode Loader is not available or does not support the correct version"
...."
(file "a.tbc" line 4)
The problem seems that tbcload1.3 cannot be found?
But tbcload is already there "/home/albertl/local/lib/tbcload1.3"
Why?
Can anyone tell me?
stratus schrieb:
> I use TclPro1.5 to compile my tcl script with tixwish in the Solaris before.
> But I cannot use the same method in Linux. Why?
>
> Is there any utility for me to compile or encrypt the code by using tixwish?
>
Tixwish is just a wish shell with the Tix package baked in. If TclPro
does not have a specific bigwish with Tix included your out of luck on
that road (but could build your own if you liked).
You might have success with freewrap or TDK, don't know for su...
tcl application with tcl applicationHere is another question, I have one tcl-based application A, my co-
worker has a tcl-based application B. Now I want to integrate my
application A into the application B.
After integration, I want to be able to run A's tcl command in B.
Assume I can only change A's code, is there any way to do this?
On 17 Dez., 07:03, teacupfull business <teacupfull.busin...@gmail.com>
wrote:
> Here is another question, I have one tcl-based application A, my co-
> worker has a tcl-based application B. Now I want to integrate my
> application A into the application B.
>...
How Tcl speaks for itself and how Tcl is not spoken for...Hello
It's Friday and... well...
Two things about Tcl going through my mind this week, a nice anecdote
and a
eyebrow-rising thing on Wikipedia:
Anecdote:
Until three months ago I worked in a scientific institue where I wrote
much
software in Tcl, especially a big Build and Report System, some tools
for
automatic checking of coding style and other things. Tcl had a bad
reputation
there (not because of me... they dropped Tcl before I started there in
favour of
Joy, then JavaScript and now Python) and besides me, there was only
one
co-worker who appearantly writes some small Tcl-Scripts to support
other
researchers in their work. To get completely rid of Tcl, they even
started to
reimplement all things, I wrote in Tcl in Python just to have it in a
language,
that most of them know (which is a good decision on the one hand, but
on the
other hand, I think, it would be better to simply learn Tcl ;-), which
made me a
little bit sad.
Now there is a new collegue who has to maintain some of the things I
wrote. Comming from Perl he wasn't exactly enthusiastic when he heard,
that he
must maintain my old code in such an obscure language..
Two weeks ago, I got mail from him. He's just studying a complex
system of
scripts that are used for a sandboxed build system for source code
which comes
from external untrusted source and must be compiled and tested. Of
course it's
written in Tcl (and some bash-Scripting). He told me, that although he
has never
looked at Tcl before,...
Extending TCL in C with tcl.h - Disabliing [<tcl-cmd>] featureHi,
TCL has a command execution syntax like this:
[<tcl cmd>]
Anything inside the 3rd bracket will be executed as a Tcl command by
the Tcl interprater.
Is there any way I can disable/delete this Tcl construct [ <tcl-cmd>]?
In other words, my Tcl interprator should print
"[32]"
for tcl command
puts "[32]"
It should not try to treat [] as a special character.
Is this any way possible while extending Tcl in C with tcl.h?
Thank you,
Arijit
* arijit79@gmail.com
| puts "[32]"
|
| It should not try to treat [] as a special character.
Check out the TCL quoting rules.
http://www.tcl.tk/man/tcl8.4/TclCmd/Tcl.htm
http://www.tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M10
http://www.tcl.tk/man/tcl8.4/TclCmd/Tcl.htm#M15
Any of
puts {[32]}
puts "\[32\]"
will do the trick.
R'
On May 8, 3:14 am, ariji...@gmail.com wrote:
> Is there any way I can disable/delete this Tcl construct [ <tcl-cmd>]?
By doing this, you would disable the primary functionality of Tcl.
I'm certain you could go into the tcl source and stop it - but why not
talk about what you are really trying to do. Perhaps someone can give
you a better way of doing what you are wanting to do.
...