In a message regarding Re: Global properties? dated Wed, 21 Mar 2007
08:57:21 +0000, Markus Winter said that ...

> >    static foo as String = Encodings.UTF8.Chr(13)
> >    return foo
> > End Function

> Couldn't you also just say

>     Function CR.Get() as String
>         return Encodings.UTF8.Chr(13)
>     End Function

Sure you could but then it has to be evaluated every time CR is useded.

Using the static variable allows a single evaluation the first time the
getter is called.


-- 
Steve Garman
Using REALbasic Professional on Windows XP Pro


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to