Questions tagged as 'namespace'

4
answers

In C # can I use a local alias for class or namespace?

In languages such as Python or PHP you can use a local alias for classes or namespaces . PHP example: use Vendor\Package\ClassName as C; use Vendor\Package as P; $class = new C; $class = new P\ClassName; Python example: from jso...
asked by 14.06.2016 / 17:51
1
answer

What is using namespace?

Since the beginning of my C ++ learning, I've been told to use namespace std , so I do not spend all the time using std::cout . However, after studying more about language, I learned that :: is a scope operator, but what ab...
asked by 05.12.2018 / 15:38
1
answer

Is there any project organization standard for C ++?

In Java and ActionScript3.0 we use namespaces based on the directory path, I see a lot of use of namespace , but are not based on the path of the "location" class in the folder. I searched a lot if there was any kind of organizat...
asked by 20.11.2016 / 01:26
1
answer

How to add namespaces automatically in Visual Basic?

When creating any class in C #, using Visual Studio, it automatically adds the namespace, as can be seen below: namespace Aplicacao.Modelo { class Cliente { } } In Visual Basic, it does not do the same thing: Public Class Clie...
asked by 27.12.2016 / 00:30
1
answer

Differences between traits and namespace for loading

Using namespace loads the file when a method is used say , if it does not invoke any of the class the file will not be loaded. use World; class Hello { World::say() } Using trait even without invoking method or property, the f...
asked by 14.09.2014 / 08:02
1
answer

Import is not working

Imports System.DirectoryServices    ERROR MESSAGE: "Warning 1 Namespace or type specified in the Imports 'System.Directory.Services' does not contain any public member or can not be found. Make sure the namespace is defined and contains at lea...
asked by 17.01.2015 / 21:20
1
answer

What does the namespace really look like? [duplicate]

I would like to realize the great need and utility of namespaces in the MVC architecture. In what circumstances does the use of namespaces become indispensable? Give an example of a concrete case if possible.     
asked by 07.04.2017 / 15:43
1
answer

Using multiple namespaces weighs more?

Let's say I have these namespaces : use DataTables\Editor, DataTables\Editor\Field; DataTables\Editor\Format, DataTables\Editor\Mjoin, DataTables\Editor\Options, DataTables\Editor\Upload, DataTables\Editor\Validate...
asked by 17.08.2017 / 17:11
1
answer

What are the advantages of using namespaces in Delphi?

From the 2009 release of Delphi (if I'm not mistaken) came the namespaces . I would like to know, in a simple example if possible that illustrates a case of advantage, what would be the advantages of namespaces in Delphi? Accou...
asked by 03.06.2015 / 15:02
2
answers

Difference between std :: cout and cout?

EmCc ++ because some use std::cout and others use only cout is only what the programmer thinks is best?     
asked by 07.09.2016 / 22:54