On Wednesday, 9 January 2013 at 12:03:30 UTC, dennis luehring wrote:
Am 08.01.2013 22:43, schrieb Era Scarecrow:
That just means my unittest wouldn't work, so either it has to be global or inside a struct/union/class (and global is not very likely).

  Thanks for clearing that up.


isn't that some sort of hijacking then?

Not sure how you mean, and I'm not sure how you would hi-Jack it. It's a nested function, and shares no names with anything else, private to the unittest; But the requirement to put it inside a struct although semi-restrictive isn't enough of an issue to rant about. Nested functions would probably be for recursive or helper functions (lambdas?) and wouldn't need overloading anyways.

Reply via email to