Variable hiding (was Initializing local properties)

2009-04-28 Thread DunbarX
Because they take up so much space in the debugger's variable tab. It would be nice to be able to hide certain variables, or at least rearrange them. Anyone think this is a good idea, to be able to see only the variables you want to while debugging? This in the actual tab. I know and love the

Re: Initializing local properties

2009-04-28 Thread Phil Davis
Ah, c'mon Mark... we haven't had a good globals rant on this list in quite some time! And as long as it doesn't degrade into a religious war, we might learn something - especially the newer folks. Phil Davis Mark Wieder wrote: Why are globals so unloved? ...don't get me started...

Re: Initializing local properties

2009-04-15 Thread David Bovill
2009/4/15 Richard Gaskin While we wait for the ability to initialize vars from a function call, a > single Init handler in a behavior script may do the trick for now. > > If you used a script-local var as a flag to see if it's been initialized, > you could ensure it's initialized only once even i

Re: Initializing local properties

2009-04-15 Thread Richard Gaskin
David Bovill wrote: 2009/4/15 Richard Gaskin wrote: Why are globals so unloved? Most programming languages support them so they can be accessed globally. If you need global access, why not use a global? True - some of my allergy to them is not rational :) In this case I'm trying to speed u

Re: Initializing local properties

2009-04-15 Thread Mark Wieder
Richard- Wednesday, April 15, 2009, 8:14:27 AM, you wrote: > David Bovill wrote: >> AFAIK - there is no easy or robust way to initialise local variables? > There's a request for this in the RQCC: > However, notice in bz #1241 (filed in

Re: Initializing local properties

2009-04-15 Thread David Bovill
2009/4/15 Richard Gaskin > > There's a request for this in the RQCC: > Voted for - would be great if others could! Why are globals so unloved? > > Most programming languages support them so they can be accessed globally. > If you need

Re: Initializing local properties

2009-04-15 Thread Richard Gaskin
David Bovill wrote: AFAIK - there is no easy or robust way to initialise local variables? That is you can't do something like: local thisWorks = "some long complicated result" local thisDoesnt = getComplicatedResult() function getComplicatedResult return "some long complicated result" end

Initializing local properties

2009-04-15 Thread David Bovill
AFAIK - there is no easy or robust way to initialise local variables? That is you can't do something like: local thisWorks = "some long complicated result" > local thisDoesnt = getComplicatedResult() > > function getComplicatedResult > return "some long complicated result" > end getComplicated