Jump to content
Sign in to follow this  
Dz!

Leave arguments blank, calling a function. Feature request.

Recommended Posts

It's rather small modification but could potentially relieve from a ton of unnecessary annoying work.

Let's assume you have made UDFB which requires arguments, for later reuse gazillion times in your project.

But not every time you use that UDFB, all of the input and output arguments are required.

It would be nice that at least output arguments could be omitted when not necessary calling such a function. 

I guess that's not so hard to automatically pipe them to NULL by compiler, instead pushing us to cork every unused output with some dummy tag.

Almost the same is true for inputs - assume, zero length string, zero, FALSE, for everything that's defined, but not explicitly used as input.

Share this post


Link to post
Share on other sites

hi Dz!

In my opinion, but maybe I am wrong, this is because you are trying to have a "big" UDFB that do many things itself...always in my opinion you have to try to split each "operation" to have many single/small UDFB...then create a unique "manager" UDFB that has inside these small blocks...then in this case you can decide every time how many Fin/Fout are needed.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...