Re: Simple Function Parameter question...

2016-10-04 Thread brian via Digitalmars-d-learn
On Tuesday, 4 October 2016 at 13:16:35 UTC, Adam D. Ruppe wrote: I'd put your repeated variables together in a struct, then pass it around to the functions. At least then you pass just one param at a time, without losing the info. That's not a bad idea. I have been creating "ids" to point to m

Re: Simple Function Parameter question...

2016-10-04 Thread Adam D. Ruppe via Digitalmars-d-learn
I'd put your repeated variables together in a struct, then pass it around to the functions. At least then you pass just one param at a time, without losing the info.

Simple Function Parameter question...

2016-10-04 Thread brian via Digitalmars-d-learn
Howdy folks This might be a really stupid question, but ya know, if you don't ask ... So, anytime I am calling a function, I have to include everything that the function needs all the time. My simplistic example is: #!/usr/bin/rdmd import std.stdio; void test(string firstinput, string sec