I have come across the following code in erb library. Note the double (( )):The following locatia= method is another version without the (( )) for testing:
I have a struct C which gets initialized with a variable number of instances of struct A and struct B. E.g.:
I searched this question, most of them says the same thing. Since we only pass the arrays address in a function, compiler can not know the arrays size by looking at the address, they say. I tried to test this by using this code, and both functions gave the same...
So I had this function...I decided to rewrite the function because, frankly, I was embarrassed by it. The function is straightforward... take a variable number of arguments of unknown type and do stuff.