Path: news.mathworks.com!not-for-mail
From: "sfreeman " <crush35@gmx.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: eval, feval, global
Date: Fri, 28 Mar 2008 12:20:03 +0000 (UTC)
Organization: Daimler AG
Lines: 17
Message-ID: <fsinpi$e2q$1@fred.mathworks.com>
References: <fsebf0$43u$1@fred.mathworks.com> <fsg56d$50c$1@fred.mathworks.com> <fsgmf0$fcd$1@fred.mathworks.com> <fsgoq2$qcf$1@fred.mathworks.com>
Reply-To: "sfreeman " <crush35@gmx.net>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1206706803 14426 172.30.248.37 (28 Mar 2008 12:20:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 28 Mar 2008 12:20:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 807112
Xref: news.mathworks.com comp.soft-sys.matlab:459644


...to come up with annother part of the original topic: 

As I have to work with code from guys, who do not bother to 
use 'clear global', I have started to use 
appdata(0,...) 
with a structure instead of global variables in code 
without GUI. Anybody knows about problems using it?

Regards,
Rainer

PS: I agree on 'eval' as bad style and that it can be 
replaced, even when I use str2num with GUI programming 
quite often (which uses 'eval' ;o) - ).
'feval' I see frequently in "Libraries", which wrap several 
functions into one file - are there better alternatives out 
there.