Isograms member variable

So now we have got a member variable to hold the TArray isograms. Wouldn’t it be more efficient instead of a GetValidWords() function to use a SetValidWords() function to assign the member variable ‘isograms’ directly inside the function instead of passing the copy of the TArray as a return value? The downside to this, I suppose, is the function becomes less reusable.

That should effectively be the same thing due to return value optimisation. I would do it via the code in the article lectures using FFileHelper, though I may be biased as I wrote those :sweat_smile:.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms