Re: [Kicad-developers] What is a global variable, and why we don't need them.

2020-04-13 Thread Dick Hollenbeck
On 4/13/20 7:39 AM, Dick Hollenbeck wrote: > Individual > PROJECT clients view their libraries through the lens of their own > FP_LIB_TABLE. > > If at that point shared pointers were introduced, it might be too bad to get > to shared > libraries. If something is in the way of this, then maybe

Re: [Kicad-developers] What is a global variable, and why we don't need them.

2020-04-13 Thread Dick Hollenbeck
On 4/12/20 8:50 AM, Brian wrote: > Just out of curiosity, what’s an example use case for multiple projects open > at once, that > isn’t served by multiple instances of KiCAD?  I admit I haven’t run into many > reasons to > have more than one open at a time in my own usage other than occasionally

Re: [Kicad-developers] What is a global variable, and why we don't need them.

2020-04-13 Thread Jeff Young
This is indeed my particular problem. But copy/paste only recently started using the system clipboard, so that would have been an issue too. I can’t remember if the fixes for that are in 5.1 or 6.0…. > On 13 Apr 2020, at 04:23, Andy Peters wrote: > > > >> On Apr 12, 2020, at 6:50 AM,

Re: [Kicad-developers] What is a global variable, and why we don't need them.

2020-04-12 Thread Andy Peters
> On Apr 12, 2020, at 6:50 AM, Brian wrote: > > Just out of curiosity, what’s an example use case for multiple projects open > at once, that isn’t served by multiple instances of KiCAD? I admit I haven’t > run into many reasons to have more than one open at a time in my own usage > other

Re: [Kicad-developers] What is a global variable, and why we don't need them.

2020-04-12 Thread Brian
Just out of curiosity, what’s an example use case for multiple projects open at once, that isn’t served by multiple instances of KiCAD? I admit I haven’t run into many reasons to have more than one open at a time in my own usage other than occasionally referring to an old project as a

Re: [Kicad-developers] What is a global variable, and why we don't need them.

2020-04-12 Thread Jeff Young
Yeah, I can’t believe g_RootSheet hasn’t gotten us into more trouble. I guess most of the issues I’ve seen to-date with the globals have been between edit frames, and since only SCH_EDIT_FRAME uses sheets we’ve been OK. (That being said, the last one was SCH_EDIT_FRAME and PLOTTER getting in

[Kicad-developers] What is a global variable, and why we don't need them.

2020-04-11 Thread Dick Hollenbeck
My definition: I like to abstract the definition a little more than some designers, and include things like singletons because a singleton intends to limit the number of instances to one. I would think you still have a global variable if you wrapped it into a class with a single static