Ambiguity can refer to two related concepts: 'ambiguous calls' and 'ambiguous grammars'.
Questions tagged [ambiguity]
400 questions
0
votes
2 answers
MySQL JOIN independent of WHERE clause
I have two tables:
debates
----------------------
id | name
----------------------
1 | why is that?
2 | why is the other?
opinions
---------------------
id | debate | opinion
---------------------
1 | 1 | because
2 | 1 | NULL
If I…

Chris Athanasiadis
- 330
- 3
- 13
0
votes
1 answer
Semantics-directed parser combinators
I tried this
import scala.util.parsing.combinator._
def name = ident ^^ {case ident => if (ident.contains("a")) ident.toUpperCase else ident
println(parseAll(name, "aa")) // parsed: AA
println(parseAll(name, "bb"))
with output
[1.3] parsed:…

Valentin Tihomirov
- 1
- 1
- 6
- 28
0
votes
1 answer
How compiler works in case of error: reference to ‘mytype’ is ambiguous
I have created one scenario where I want help. Below code is the sample test application for same.
#include
using namespace std;
class A
{
public:
typedef int mytype;
mytype GetInt() { return 1;}
};
class B
{
public:
…

Swapnil
- 1,424
- 2
- 19
- 30
0
votes
1 answer
"Ambiguous Name Detected"
I am currently having issues with having the second sub section work. I had an error:
Ambigious name detected:Worksheet_BeforeDoubleClick
I tried changing the second name but the code still didn't work. Both Subs work individually but putting…

C. Cons
- 57
- 6
0
votes
1 answer
How in C++ multiple inheritance choose of which base class method will be inherited?
Consider following simple example:
#include
using namespace std;
class A {
public:
virtual void foo() {
cout<<"A"<

Roman Tymchyshyn
- 64
- 1
- 11
0
votes
4 answers
c++ pair template struct declaration ambiguity!
In definition of pair class in c++ there are two typedefs. what are they for? there are no use of them in the code!
template struct pair
{
typedef T1 first_type;
typedef T2 second_type;
T1 first;
T2 second;
pair() :…

Kamran
- 451
- 1
- 5
- 13
0
votes
1 answer
How to differentiate parameters from other functions when instantiating an anonymous class in Scala?
I have an abstract class A such as this one:
abstract class A {
def id: String
}
I would like to use the companion object of A to return an instantiated anonymous subclass of A. Unfortunately, the following function does not work due to an…

rhartert
- 53
- 5
0
votes
2 answers
Resolve ambiguousness of a base template class member
I have a hierarchy of classes and every one of them must have a particular base class. Than base class provides ability to post log records and takes in ctor name of a log channel (basically a name of a class which is using log). Lets call this…

Vasilly.Prokopyev
- 856
- 1
- 10
- 24
0
votes
1 answer
Overloading ambiguity between boost and xercers XML parser
I have a legacy C++ Application ( Solaris Sun CC 5.6 compiled) which uses xercers XML parcer v1.6.0 from ages. All good sofar.
Recently one other third-party libraries upgrade forced us to use boost libraries along with Sun CC 5.9 compiler.
But we…

RameshJanagama
- 92
- 8
0
votes
5 answers
what is the equivalent of object in C# for objective C?
In c# I can declare object o; then I can assign o=(float)5.0; or o="a string." Is there an equivalent for Objective-C? I tried to use id but it does not take primitive type like float or integer. Thanks for helping.

Wayne Lo
- 3,689
- 2
- 28
- 28
0
votes
0 answers
c++ Does the return type of a function cause ambiguity?
While making a very simple program, I started wondering about whether the return value of a method has any participation in making a method ambiguous?
for example (not the case I was wondering about this is just a simple example to support my…

Julian Declercq
- 1,536
- 3
- 17
- 32
0
votes
1 answer
Resolving ambiguous grammar
I've been at trying to solve this for hours and it's just been an endless loop of trial and error. I need to make this grammar unambiguous:
S -> Sa | Sb | aS | bS | aa
As I understand this can generate any combination of a's and b's with "aa"…

user3397545
- 787
- 1
- 5
- 8
0
votes
1 answer
Backup Folder and Ambiguity of Definition of Variables
Ok, so I am converting code to C#, and I am using Visual Studios 2013. I have a backup folder with a copy of various files from the project in it because I cannot build the project unless they are in there. If the files are not in there, an error…

Jared.Rodgers
- 141
- 6
0
votes
1 answer
C# reflection and methods ambiguity
I have a assembly which contains a class. That class has two methods
public IEnumerable Invoke();
public IEnumerable Invoke();
I dynamically load the assembly
Assembly as = Assembly.Load("MyAssemblyName, Version= 6.1.0.0, Culture=neutral,…

Larry G
- 1
- 1
0
votes
1 answer
When several C static libs contain methods with same signature, this induces linker ambiguous behaviour
My environment:
Win embedded (WES2009) RealTime driver, API written in C in MSVS2008 / VS2010. Result: 2 independend libs, implementing 2 independent solutions: 2 APIs of 2 serial port drivers.
A simple problem:
I have these 2 static libs,…

Sold Out
- 1,321
- 14
- 34