Wish Typed maps and lists

Discussion in 'Bugs & wishlist' started by Troberg, Mar 19, 2015.

  1. Troberg

    Troberg Well-Known Member Licensed User

    Just like arrays, it would be nice to (optionally) be able to limit what you can stuff into a map or list.

    Something like:

    Code:
    Dim Songs as Map of cMediaFiles
    Dim Events as List of cCalendarEvents
    Then, if I tried to stuff, say, a filename in a string into the Songs map, the compiler would give an error.

    This syntax, of course, should be optional.

    Not only would it stop some unnecessary bugs, it would also make the code clearer by clearly stating "I intend this list to hold objects of this type!".
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice