comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » example sought: creating dynamic structures at runtime (DLM)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
example sought: creating dynamic structures at runtime (DLM) [message #32515] Thu, 10 October 2002 06:58
Sidney Cadot is currently offline  Sidney Cadot
Messages: 7
Registered: October 2002
Junior Member
Hi all,

Does somebody have an example on how one can create at runtime a structure,
having fields of types that are known only at runtime? As a contrived
example, I would like to be able to have a DLM function GIVE_PRIMESTRUCT(N)
that, given an integer N, returns a struct with N fields, with fields
2,3,5,7,11,13,17,... of type INT and all other fields of type LONG.

My actual application is much more useful (generating structures based on a
data-dictionary that has runtime dependencies) but if I knew how to do the
GIVE_PRIMESTRUCT I'd basically know what I need.

Best regards,

Sidney Cadot
Science and Technology Corp.
The Netherlands
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: returning pointers and simple types from DLM functions
Next Topic: Re: IDL vs Yorick?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:47:18 PDT 2025

Total time taken to generate the page: 0.00448 seconds