| To: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
|---|---|
| Subject: | Re: DayOfYear |
| From: | Charles Yeomans <charles@declareSub.com> |
| Date: | Sun, 30 Nov 2008 13:59:38 -0500 |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com |
| Delivered-to: | listarchive@realsoftware.com |
| In-reply-to: | <33cbfa100811301050y3273b2e6m1bcc2b6eea83cc52@mail.gmail.com> |
| References: | <33cbfa100811291949ucf9ad90yb00334f2d57eff8a@mail.gmail.com> <1ir7cff.y3us0h1955hl6M%realbasiclists@monkeybreadsoftware.de> <33cbfa100811301050y3273b2e6m1bcc2b6eea83cc52@mail.gmail.com> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
On Nov 30, 2008, at 1:50 PM, Lars Jensen wrote: Sub myDayOfYear(extends d as date, assigns v as integer) d.day=1 d.Month=1 d.day=d.day+v-1 End SubThanks Christian, that is simpler than my own SetDayOfYear routine. However I still don't understand why the compiler won't let me call a method named DayOfYear. I'm pretty sure extension methods have low precedence when resolving the dots. Probably the compiler checks first to see if there is a computed property with that name, sees that there is no set implementation, and spits out an error instead of next checking for an extension. Charles Yeomans _______________________________________________ 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: Create RealSQLDatabase or RealSQLServerDatabase VIEW from RealBasic, Charles Yeomans |
|---|---|
| Next by Date: | Re: DayOfYear, Andre Kuiper |
| Previous by Thread: | Re: DayOfYear, Lars Jensen |
| Next by Thread: | Re: DayOfYear, Andre Kuiper |
| Indexes: | [Date] [Thread] [Top] [All Lists] |