Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: David H. on February 03, 2020, 09:42:47 am



Title: DICTIONARY OF DICTIONARY OF ....
Post by: David H. 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


Title: Re: DICTIONARY OF DICTIONARY OF ....
Post by: Reuben B. 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