A namespace is a container that provides context for identifiers, within which names are unique.
1
vote
0answers
21 views
PHP include different version of same library
If i've different version of same third-party library ( or class ) that have of course same namespaces and class names. Is there a way to include them in same project avoiding name collisions?
...
0
votes
0answers
4 views
Modularizing Spreadsheet and handle multiple namespace
I am trying to process a very complex XML document. There are two problems. First, there are different namespaces defining the document.
<xsl:stylesheet ...
0
votes
1answer
24 views
PHP Namespace, Do Directories Matter?
Suppose you are trying to extend a class that's in a totally different directory and that also has a namespace. Can you simply use that namespace to get at the class, or do you need to include it with ...
1
vote
2answers
40 views
Function not found from global namespace if there's an overload with different argument types
If we have a function in the global namespace and an overload with different argument types in another namespace, it seems that C++Builder compiler doesn't find the function from the global namespace. ...
1
vote
3answers
61 views
What's the difference between a static member variable and a namespace variable? [duplicate]
Whit is the difference between 1 and 2?
1:
namespace Foo {
int bar;
}
2:
class Foo {
public:
static int bar;
}
If bar is a function, then the difference is that static class member can ...
2
votes
1answer
25 views
Difference between IIFE and call
Is there a difference between:
(function(){
}).call(this);
and
(function(){
})();
or
var MODULE = {};
(function(){
this.hello = 'world'
}).call(MODULE);
and
var MODULE = {};
...
-1
votes
1answer
48 views
<Object> is not a member of <struct>
I have a question about C++. I'm working with OpenCV. I'm pretty new to both.
I have this declaration:
struct scoredRotatedRect
{
double score;
RotatedRect ellipse;
vector<Point> ...
2
votes
1answer
15 views
LINQ2XML Moving all namespace declarations to root element
This sounds like a query that many would have but after hours of searching I can't even find a question addressing this problem.
I'm using LINQ2Xml classes to generate an XML document. I'm using a ...
0
votes
0answers
8 views
Two SharePoint aplpications use the same third-party DLL
The problem:
There are two SharePoint 2010 projects located on one common servers and those projects use the same third-party dll (SPGenesis.Core.DLL). Everything is fine until one of the projects is ...
1
vote
6answers
92 views
Class in different namespaces
I'm using a third party dll. I'm using a class in some namespace namespace.class.
In newer versions that class has been moved into another namespace so now it is newnamespace.newpart.class. My code ...
1
vote
1answer
34 views
Instantiate Class using namespaces
I have a function file, in which I put an __autodload() function. For my classes I want to use namespaces, since I'm learning about them. In the folder lib/ I have a DB class and a Test-User class. ...
1
vote
1answer
41 views
Why can't I put namespace in parent class constructor call?
So I know that I am doing something very wrong according to purists, which is inheriting from std::vector, but I wanted to add very specific functionality which I think has a lot of sense as a child ...
1
vote
1answer
21 views
Class Not found in AppKernel.php
I'm trying to deploy my Symfony2 project. When I run the command
php app/console cache:clear --env=prod --no-debug
I get the following error:
PHP Fatal error: Class ...
0
votes
0answers
14 views
xml namespace (its:translate) not recognized its:translate
I am creating an xml doc using java code. The 'name' element has an attribute 'its:translate' which throws an 'undeclared namespace' exception. What am I missing ?
DocumentBuilderFactory docFactory = ...
6
votes
1answer
76 views
When writing an R package that uses the Matrix package, why do I have to specify Matrix::t() instead of just t()?
Consider the following simple functions defined in an R session:
nathanvan@nathanvan-N61Jq:~$ R
R version 3.0.1 (2013-05-16) -- "Good Sport"
... snip ...
> make.a.Matrix <- function(data, ...