From rhkramer at gmail.com Fri Dec 11 08:36:18 2009 From: rhkramer at gmail.com (Randy Kramer) Date: Fri, 11 Dec 2009 09:36:18 -0400 Subject: [Lvlug] Followup question (was Re: Confirmation of my understanding of a C++ declaration?) In-Reply-To: <200910011131.44333.rhkramer@gmail.com> References: <200910011131.44333.rhkramer@gmail.com> Message-ID: <200912110836.18326.rhkramer@gmail.com> I sent an email on this declaration before, but now I have a slightly different question. (I don't think I got a response to that other email, but that's OK, the way I phrased it was such that if my understanding was pretty good, I didn't ask for a response.) Here's the new question: In a declaration like this: static const char * const twikiWordListDesc[] = { ... } Which const refers to the pointer--the first or the second? It's an idle question, I don't plan to change the declaration, but presumably I'd learn something. I'm guessing it's the second const, because I'm assuming the keywords at the beginning (static const char) all apply to the "actual" array of keywords, not to the pointer? Thanks! Randy Kramer On Thursday 01 October 2009 11:31:44 am Randy Kramer wrote: > I'm trying to modify Scintilla by adding a lexer for > TWiki/Foswiki/askRhk markup. Scintilla and the "built-in" / native > lexers are written in C++. With some effort, I think I finally > understand the following declaration (used in a lexer I'm using as > one of my examples): > > static const char * const twikiWordListDesc[] = { ... } > > And below is what I think I know--if I'm missing or misunderstanding > something, I'd appreciate any comments: > > * twikiWordListDesc[] is a pointer to an array of chars > * the data in that array (the chars) is const (can't be changed by > the function or file it is declared in) > * the pointer is also const--the function or file it is declared > in cannot make it point to something else > * it is also of static duration, meaning that its value (the value > of the pointer?, the value of the array?, both??) is maintained even > when this file is out-of-scope (I've struggled with static quite a > bit, and the variations of static for a variable, for a function (in > C), and for a class function (in C++), and I think I have a fairly > good handle on it even if I don't express it very well here.) > > I guess that all seems logical in the context of this program--(this > is the lexer for an editor, used to style text (as in syntax > highlighting)) as I understand it--twikiWordListDesc[] is intended to > hold a list of keywords--that list of keywords will not change for > this language (it might change when a different language is > lexed)--but everytime this lexer is reinvoked, that is (one of the) > appropriate lists of keywords. I'm not as clear on why the pointer > is or should be const, but ok, I think I have a decent understanding. > > Randy Kramer From mstanley at technologist.com Mon Dec 14 07:38:50 2009 From: mstanley at technologist.com (mstanley at technologist.com) Date: Mon, 14 Dec 2009 07:38:50 -0500 Subject: [Lvlug] I need a volunteer to receive Nuts & Volts magazine. Message-ID: <8CC4AD18594EC15-1640-455@web-mmc-d03.sysops.aol.com> Does anyone want a one year subscription to Nuts & Volts magazine. They are offering two free gift subscriptions if I sign up for another year. I already have one person and I need a second because their stupid sign-up form won't let me pass until I fill in both gift sections. So the first person who responds to this ON THE LIST will get it. Merry Christmas and best regards, -Mark Stanley -------------- next part -------------- An HTML attachment was scrubbed... URL: From linc at thelinuxlink.net Mon Dec 14 07:52:21 2009 From: linc at thelinuxlink.net (linc) Date: Mon, 14 Dec 2009 07:52:21 -0500 Subject: [Lvlug] I need a volunteer to receive Nuts & Volts magazine. In-Reply-To: <8CC4AD18594EC15-1640-455@web-mmc-d03.sysops.aol.com> References: <8CC4AD18594EC15-1640-455@web-mmc-d03.sysops.aol.com> Message-ID: <4B263505.3000506@thelinuxlink.net> mstanley at technologist.com wrote: > Does anyone want a one year subscription to Nuts & Volts magazine. They > are offering two free gift subscriptions if I sign up for another year. > I already have one person and I need a second because their stupid > sign-up form won't let me pass until I fill in both gift sections. > > So the first person who responds to this ON THE LIST will get it. > > Merry Christmas and best regards, > -Mark Stanley OO OO Me! -- -Linc Fessenden In the Beginning there was nothing, which exploded - Yeah right... From mstanley at technologist.com Mon Dec 14 11:06:52 2009 From: mstanley at technologist.com (mstanley at technologist.com) Date: Mon, 14 Dec 2009 11:06:52 -0500 Subject: [Lvlug] I need a volunteer to receive Nuts & Volts magazine. In-Reply-To: <4B263505.3000506@thelinuxlink.net> References: <8CC4AD18594EC15-1640-455@web-mmc-d03.sysops.aol.com> <4B263505.3000506@thelinuxlink.net> Message-ID: <8CC4AEE95950D06-E58-A73@web-mmc-m04.sysops.aol.com> Hey Linc, OK, I'll need you to send me your mailing address and the email address you want to use when dealing with them. I think it will be about 6-8 weeks before you get the first edition. -Mark S. -----Original Message----- From: linc mstanley at technologist.com wrote: > Does anyone want a one year subscription to Nuts & Volts magazine. They > are offering two free gift subscriptions if I sign up for another year. > I already have one person and I need a second because their stupid > sign-up form won't let me pass until I fill in both gift sections. > > So the first person who responds to this ON THE LIST will get it. > > Merry Christmas and best regards, > -Mark Stanley OO OO Me! -- -Linc Fessenden -------------- next part -------------- An HTML attachment was scrubbed... URL: From py.ohlin at gmail.com Tue Dec 15 13:23:21 2009 From: py.ohlin at gmail.com (C. Hever) Date: Tue, 15 Dec 2009 13:23:21 -0500 Subject: [Lvlug] perl (mis)adventure this morning Message-ID: http://www.cyberpunkreview.com/forums/viewtopic.php?p=30751#30751 it was crazy -------------- next part -------------- An HTML attachment was scrubbed... URL: