Search:

Type: Posts; User: freeflow

Search: Search took 0.01 seconds.

  1. Re: SafeArray question. Technical reason for order of Indeces

    Hi fafalone

    That wouldn't appear to be the case. Take the case of a 2D array. For both VBA and C the first dimension specifies the number of rows and the second dimension specifies the number of...
  2. SafeArray question. Technical reason for order of Indeces

    Does anyone know the technical reason for why the indeces in the SafeArrayPutElement and SafeArrayGetElement methods have to be specified in the reverse order to the corresponding Dim statement.
  3. Re: Simple and fast, lightweight HashList-Class (no APIs)

    Olaf, many thanks for taking the time to look at this. First my apologies, I edited my code and forgot to post the final version hence the mixup with Variant().

    I can confirm that implementing...
  4. Re: Simple and fast, lightweight HashList-Class (no APIs)

    OKk here you go. The code below respect that Items and Keys return an Array of Variants rather than a variant containing an array.



    Public Sub TestcHashDItems()
    Debug.Print "Retrieving...
  5. Re: Simple and fast, lightweight HashList-Class (no APIs)

    Please excuse if its me being stupid, but when I use the above object to store arrays, collections or other cHashDs then I get an error with the Keys and Items method.

    The statement which...
  6. Thread: TwinBasic

    by freeflow
    Replies
    1,809
    Views
    871,845

    Re: TwinBasic

    Just curious and for a bit of teasing



    By my reckoning that means intColor is b. But preferably I'd want a compilation error for trying to Or a Byte and an Integer (which in VBA is 16 bits if...
  7. Thread: TwinBasic

    by freeflow
    Replies
    1,809
    Views
    871,845

    Re: TwinBasic

    You don't ever want to be like c++. BY all means have the same high level functionality as c++ but don't evolve the way c evolved to c++, to get not be trapped by being afraid to move on from syntax...
  8. Thread: TwinBasic

    by freeflow
    Replies
    1,809
    Views
    871,845

    Re: TwinBasic

    The following makes interesting reading

    https://codedocs.org/what-is/b-programming-language

    extract
  9. Thread: TwinBasic

    by freeflow
    Replies
    1,809
    Views
    871,845

    Re: TwinBasic

    If you are working with pointer arithmetic then its more likely that += exists to be able to iterate the first dimension of a 2D array more easily e.g. if your linear allocation of memory represents...
  10. Thread: TwinBasic

    by freeflow
    Replies
    1,809
    Views
    871,845

    Re: TwinBasic

    We are not arguing about pointer arithmetic but about why += and ++ exist in the first place. Its about recognising patterns in code. 'For each' may not have been in the scope of the implementors...
  11. Thread: TwinBasic

    by freeflow
    Replies
    1,809
    Views
    871,845

    Re: TwinBasic

    The reason for my observation is that in the C programming language ++ and += add/increment based on type of the target variable. Thus if myVar is an int of 4 then myVar+=1 increments myVar to 5,...
  12. Thread: TwinBasic

    by freeflow
    Replies
    1,809
    Views
    871,845

    Re: TwinBasic

    I've noted some heated discussion on this thread about syntax tuples, += etc and I'd like to make some observations

    Lets take +=.

    Lets take a step back to c (as this has been cited in...
  13. Thread: TwinBasic

    by freeflow
    Replies
    1,809
    Views
    871,845

    Re: TwinBasic

    Nearly two weeks without a visible update. Something good must be hatching.
Results 1 to 13 of 13



Click Here to Expand Forum to Full Width