I love Lex's ADL example, C++ can seem just crazy :)
Crazy like a Fox, makes the compiler near impossible, but makes lots of stuff "just work" :)
So a much simpler example then (using C syntax to explain since we all know it, but could be any language):
int a; { first_piece_of_code_using_a... float a; second_piece_of_code_using_a .... }
For C/C++ the first piece of code will see `a` as an int and the second piece of code will see `a` as a float, but there are languages (Julia for one) where both pieces of code will see `a` as a float. Again you need language specific knowledge to lookup `a` in the first piece of code.
Cheers Lex
Regards, Colomban _______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel