Working in Delphi with container types. Here is my article about how SIDEX can be used for dictionary and list handling. I'd appreciate some feedback about this kind of concept.

Working in Delphi with container types. Here is my article about how SIDEX can be used for dictionary and list handling. I'd appreciate some feedback about this kind of concept.
https://www.tml-software.com/knowledgebase/kb/article/5/8/

Comments

  1. Alexandru Ciobanu had a post about the same subject: http://alex.ciobanu.org/?p=152

    What I liked more about his approach is that he used the invokable feature. So instead of writing VarSidexDictSet(value,'aNumber',42); you write value.aNumber := 42

    ReplyDelete
  2. The implementation of the custom variant supports properties as well.

      dict := VarSidexDictCreate();
      dict.aNumber := 42;
      dict.aString := 'simplicity';
      dict.aTime   := now;
      dict.aList   := VarArrayOf([1.4,'a']);

    I will write something about it in the article.
    Thank you

    ReplyDelete

Post a Comment