Let’s get some more return value types

One of the things that I’m always missing in Microsoft Dynamics NAV is support for more return value types:

I would like to be able to return all variables types, to support a more functional programming flow. Currently, I’m missing:

  • Record
  • DotNet
  • Variants
  • RecordRef
  • FieldRef
  • Streams

Hey Microsoft, how about adding some of these 🙂

(I know that I can just use VAR parameters, but they generate a cluttered program flow, one example is that it’s not possible to pass the output of a function call as a parameter to another if the return value is a VAR parameter).