Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: DICTIONARY OF DICTIONARY OF ....  (Read 2560 times)
David H.
Posts: 158


« on: February 03, 2020, 09:42:47 am »

Hi,

I wanted to define a DICTIONARY of a DICTIONARY of STRING's...

I noticed that the compiler does not like the syntax but if I use a TYPE its happy with it and the code works as expected

Code
  1.  
  2.    TYPE mydict DICTIONARY OF STRING
  3.    DEFINE m_dict DICTIONARY OF mydict
  4.  
  5.  

Just mentioned this in case this was not the expected behaviour.

Cheers,

David
Reuben B.
Four Js
Posts: 965


« Reply #1 on: February 03, 2020, 09:51:22 pm »

Hi,

I wanted to define a DICTIONARY of a DICTIONARY of STRING's...

I noticed that the compiler does not like the syntax but if I use a TYPE its happy with it and the code works as expected

Code
  1.  
  2.    TYPE mydict DICTIONARY OF STRING
  3.    DEFINE m_dict DICTIONARY OF mydict
  4.  
  5.  

Just mentioned this in case this was not the expected behaviour.

Cheers,

David

Expected Behaviour.  It came up at the end of this discussion http://4js.com/fjs_forum/index.php?topic=1247.0 

Same thing also occurs with DYNAMIC ARRAY or any combination of DYNAMIC ARRAY and DICTIONARY.  I think it was felt that using TYPE was the better practise so no urgency attached to any change.

Reuben 

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines