• DDL (getting rusty)

    From =?UTF-8?Q?Henrik_Paludan=2DM=C3=B8rk?=@kilgasto@gmail.com to comp.sys.tandem on Mon Mar 20 06:36:11 2023
    From Newsgroup: comp.sys.tandem

    i am looking to create a DEF which contains earlier DEFS, stored already in the DICT.

    DEF
    custname TYPE *.
    custaccount TYPE custaccount.
    custadrs TYPE adrsrec.
    end.

    where custadrs is really a RECORD used in a file.

    so that the resulting DEF is in fact sort of nested.
    This does not seem to work, and i am sure i misunderstand something.

    What have i forgotten? (this time around...)

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Randall@rsbecker@nexbridge.com to comp.sys.tandem on Mon Mar 20 18:39:42 2023
    From Newsgroup: comp.sys.tandem

    On Monday, March 20, 2023 at 9:36:13rC>a.m. UTC-4, Henrik Paludan-M|+rk wrote:
    i am looking to create a DEF which contains earlier DEFS, stored already in the DICT.

    DEF
    custname TYPE *.
    custaccount TYPE custaccount.
    custadrs TYPE adrsrec.
    end.

    where custadrs is really a RECORD used in a file.

    so that the resulting DEF is in fact sort of nested.
    This does not seem to work, and i am sure i misunderstand something.

    What have i forgotten? (this time around...)
    I do not think you can reference a RECORD as a DEF type. Your RECORD should be defined in terms of a DEF, and then reference that DEF in another DEF. Don't forget the ?DICT statement to open the existing dictionary.
    --- Synchronet 3.21d-Linux NewsLink 1.2