| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Confused about new things in RB |
| From: | Tom Benson <tombenson at mac dot com> |
| Date: | Wed, 28 Feb 2007 09:15:04 +1100 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <9A9B1EA6-BC29-4610-A614-088CD749A385 at tribu dot ch> <p06240800c20a57d0fefc at [192 dot 168 dot 11 dot 5]> |
> > Aren't static variables and properties kinda the same thing? > Or do statics get used to keep the property list short? Yes and no. Properties are objectively scoped, static variables are functionally scoped. I've found them handy in several situations, here's a very quick example. > static callCount as integer > > //do my function > > callCount = callCount +1 The callCount gets incremented each time the instance of the function is called - Tom _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Confused about new things in RB, kev |
|---|---|
| Next by Date: | RE: Confused about new things in RB, Tim Hare |
| Previous by Thread: | Re: Confused about new things in RB, kev |
| Next by Thread: | RE: Confused about new things in RB, Tim Hare |
| Indexes: | [Date] [Thread] [Top] [All Lists] |