![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
#12
| |||
| |||
|
|
Hi I love the expression Dawn. *However in D3 one can force the program to treat a variable as numeric by using a successful arithmetic operation. Foo = 0 starts life with both string and numeric flags set. *However Foo = 0;Foo += 0 turns off the string flag and speeds up numeric comparisons for the rest of the program. Peter McMurray |
#13
| |||
| |||
|
|
On Jul 19, 4:53 pm, Excalibur21<pgmcmur... (AT) gmail (DOT) com> wrote: Hi I love the expression Dawn. However in D3 one can force the program to treat a variable as numeric by using a successful arithmetic operation. Foo = 0 starts life with both string and numeric flags set. However Foo = 0;Foo += 0 turns off the string flag and speeds up numeric comparisons for the rest of the program. Peter McMurray On 7/20/11 10:19 AM, wjhonson wrote: Hmmm I'd like to see timing tests for this theory. It's certainly not true for R83 or R91 that this behaviour exists i.e. "both string and numeric flags set". Rather what occurs is the numeric Zero is moved into the variable Foo. If you examine the run-time space you see a numeric zero (if you can read bytes) not a string. However if you say Foo = "0" then the string 0 is put into variable Foo, in which case you should really do a Foo+0 before a numeric comparison but few people are that rigorous. Will |
#14
| |||
| |||
|
|
Correct, a variable's descriptor either contains a short string, a long string, or a number (integer). There's no string flag, there's no numeric flag; there's only a descriptor. |
#15
| |||||||||||
| |||||||||||
|
|
Dawn, I have nothing against you, |
|
but it does bother me when people casually throw out uncommon (at least to CDP) terms with no supporting explanation or examples. |
|
Duck typing is a term that I don't ever recall being used in CDP before. Maybe it has, but it would certainly be quite rare. *As such is the case, it is reasonable to assume that many in CDP might be unfamiliar with it and how it applies to MV programming. |
|
Your own post mentioned duck typing with QM and Caché. *So, I asked for elaboration on QM because I am familiar with it. *Also, QM has been rising in popularity among CDPers, so it seemed more reasonable than asking about Caché. |
|
In your reply to my request, instead of providing an explanation or example of duck typing, you chose a defensive stance in which you declared that you're "comfortable" using the term as you do. Well, yay! *Such a "hand wavy" answer didn't help anybody, |
|
and as I said, just led me to believe that you didn't really know how duck typing applied to MV or possibly didn't really understand the term at all. |
|
Of course, you had to follow-up my explanation by taking on the role of the victim in what I guess you imagine to be my evil plot to disparage you |
|
and become the all-knowing master of CDP. - btw, that Master of CDP position is already taken by a Nebulous character. LOL.. Just kidding, T. ...Sort of. |
|
It's unfortunate that you took my initial, simple request personally. * |
|
I believe that both my request and assessment, based on the information (or lack of) that you provided, were fair. |
|
-- Kevin Powick |
#16
| |||
| |||
|
|
On 2011-07-20 13:14:20 -0400, frosty <fros... (AT) bogus (DOT) invalid> said: Correct, a variable's descriptor either contains a short string, a long string, or a number (integer). *There's no string flag, there's no numeric flag; there's only a descriptor. KA-BOOM! -- Kevin Powick |
#17
| |||
| |||
|
|
Oh dear me so many who have not read the manual I quote |
|
On the topic of the manual is there a setting in Windows Explorer that will let a particular file such as the manual run Active X without having to say yes all the time? |
#18
| |||
| |||
|
|
On the topic of the manual is there a setting in Windows Explorer that will let a particular file such as the manual run Active X without having to say yes all the time? Peter McMurray |
#19
| |||
| |||
|
|
Another offering similar to basic4ppc is the free "App Inventor" from Google, where there is no code at all (!). *I did a project with this and it was fun and complete. *I used AI so that I could turn this project over to a non-programmer friend so that he can maintain it. |
#20
| |||
| |||
|
|
I wonder if App Inventor will be a casualty of the closure/scaling back of Google Labs? |
![]() |
| Thread Tools | |
| Display Modes | |
| |