I have a file with, at the top, a using namespace glarg::glorb;.
Later in the file I call bargle(). There is a bargle() in the global ("C") namespace. There is also a glarg::glorb::bargle().
I would expect that calling bargle(), in these circumstances, calls glarg::glorb::bargle(), and if I want the "C" bargle I'd have to explicitly say ::bargle().
Instead, I get a "reference to 'bargle' is ambiguous".
Why is this, and why do I feel like I usually don't see it act this way?
@mcc then yes, the call is ambiguous, because either version (namespaced and global) would be acceptable. using a namespace in C++ does not shadow existing definitions, it just adds to the global symbol available, so unqualified lookup will not know how to resolve the ambiguity (this sometimes works as expected because the signatures are different, and/or there's some argument-dependent lookup that kicks in and solves the ambiguity).
Grazie a Bing per essere crollato, portandosi dietro DuckDuckGo, per avermi fatto scoprire searXNG. E grazie a tutte le persone che me l'hanno consigliato (e pure a quelle che mi hanno dato altri consigli, tutti validi).
@juc a me l'idea del redditometro non dispiace affatto, e per quanto le banche dati del pubblico siano nello stato in cui sono, potrebbero comunque essere un punto di partenza per le verifiche da effettuare poi con altri mezzi.
Il vero problema è un altro: tutto questo non viene fatto per alimentare una cultura dell'onestà o del bene comunque, ma per una pesca a strascico di coglioncini (a collo alto) mentre la grande evasione avviene sotto la luce del sole.
i'm finally opening up boxes of software from my archive that haven't seen the light of day in 15-20 years. today, i found a program that has never been archived or probably seen in over 40 years.
i absolutely adore this dungeon mastering program for the TRS-80 that was distributed in ziplock bags in 1982
i can find only one mention of it on the web - the august 1982 issue of TRS-80 Rainbow magazine that advertises it for $19.95 + S&H
happily, i found the cassette, which has never been archived anywhere AFAIK. i am scanning in the printed documentation, along with making a recording of the tape.
my advice to anyone who wants to make a hobby programming language would be to make a lisp, except to simultaneously not worry at all about being anything like the big lisps in terms of design or syntax