... hmmm. Might be argued that, in general, especially for so-called "critical applications", it is not good because the compiler would not error-check call...
... Make that THREE: =====vararg.bas $APPTYPE CONSOLE 'using variable number of arguments 'yet another example in addition to SUBI.INC and .Invoke defint stack...
... <snip> ... Thanks Doc for the reply. The SKIP or SUBI-like option should not being asked or included, I think. Since it will pull away the real context of...
... In a Custom Object ... hmmm, Like this? ... OBJECT ARG arg3 as long = 12 invoke as sub END ARG Declare sub invoke sub invoke 'code to use byref(@ARG.arg3)...
... Isn't this as easy as IF arg3 = default THEN arg3 = 12 in your SUBI or VARARG.bas procedure. You define what is default and if found, you define what is...
... Yes Doc, I just found the same technique a moment ago. When I try to set 'default' using value that exceeding long/integer value. e.g.; '==== testargs.bas ...
I not sure it's a bug or not but following code will produce error. White-space is not allow before the parenthese: '=== begin code $apptype console declare...
... correct, your "nothing" should be an "unaccepted value"; if there is no such value, I feel obliged to ask ... what is your procedure doing that there is no...
... Not a bug, dear friend, it's the same syntax as in ordinary (Western?) languages, what you have learned in no doubt many years of schooling ... Please see...
... hmmm. with .Invoke, "void" is a different data type and easily detectable. Or in your example if the entire LONG range is a valid arg value, maybe you...
... Brother Don. If you really want to be a rebel and write like above, add this: $DEFINE " )" ) and see if that let's you write like an illiterate, so to...
... I can't get sys_uname to work (for Linux VERSION object) but I am happy. Don is back! I love it. So I'm goofing off. Now do you want to pick up the...
... I'm making an earth-core sub-marine. You don't have to go outer space to get those numbers running out. :-) No I joking. ... I need something is exist to...
... Thats is really funny. :-D At the same time, the following will not given any errors: testarg( 2, int(23/4), 10 ) a = int( 23/4 ) It keeps me wonder if...
... Whew! Relief... I woke up this morning with one thought: delete my last two messages which might be construed as offensive rather than humorous! You...
... Right, "void" as used in .Invoke is a unique VARIANT data type and therefore is unambiguous. However, most might want to avoid the overhead of using...
... So then, VARIANT should accept any datatype isn't it? I think I've found another bug when I recieved this error: ERROR Type mismatch mysub (123, void, 0) ...
... To evaluate a Type mismatch, one needs the DECLARE for mysub to know what type it is expecting. ...Oh, you have that below... ... HotFind > void reveals...
... This is not what I want! I want that 0 (zero) taken as argument value. Whilst you sip your champagne, let me take a moment to choose between these 2...
... No problem. Then it's dim x as variant: x = 0 mysub(123, void, x) ... Could help -- if impressionable children are not around. ... "...get back my...
... Or ... $DEFINE mysub g1.Invoke OBJECT game1 Invoke as sub END game1 DECLARE SUB Invoke SUB invoke 'code like you have in mysub 'see ComHelper source on...
Okay, the "One" by Metallica just give me a nice little bang into my head.. :-) ... Not neccessarily have to bloat with another variant. This will do: arg3 = 0...
... Agreed. Good idea for the compiler to suspend type checking for Variant args so any arg would be stored in the variant. ... Actually, nothing is pushed on...
======================= 2D and 3D Array Layouts ======================= 2D & 3D array always got me confused because i can't visual them how they were placed...
... Don, please take a look at hotredim.bas (HotTrial.zip) which shows that the right-most subscript is first, then that is repeated for next subscript, etc....
Hottrial.zip > fastfor.bas I compiled it and found that the for loop WITH the STEP was decidely faster, not slower. (.13 down to .04) Armed with this...
... This and your other results are very interesting. Not what I would expect -- but what do I know? Have to check this out. Maybe we have a mystery here ......
... It gets weirder! I standardized the TO as 2147483646 (When using the integer limit of 2147483647 it gets a little funny! First Loop 0 secs. Second does not...
Whilst I remember, I wanted to ask, Does Hot!basic cater for SMP (Multi CPU) processing? I did look through the doco and THREADS was the closest I could come ...
... Well, you can have multiple threads running. Second, you can use any valid CPU opcode in HB. Thus, it would seem to me that there is no reason why this...