错误、漏洞、问题 - 页 2211

 
pavlick_:

该类真的是一个命名空间类吗?

 
pavlick_:

你对这件事有什么可说的吗?哪里有关于没有限定词的名字的文件搜索?从参考资料来看。

---------

语法

MQL5交易策略编程语言的语法与C++编程语言非常相似,除了一些特点之外

  • 不存在地址运算。
  • 没有goto运算符。
  • 你不能声明一个匿名 的枚举。
  • 没有多重继承。

------------

对不合格的名称查询只字未提,这是基本的东西。好吧,就看楼主如何从Renate的帖子中学习这门语言了,缺乏文档和向后兼容,但这样一来,这门语言给人的印象就是小孩的玩物。

我支持它,是时候放弃对语言规则的帮助了,因为从本质上来说,Mql5已经是另一种编程语言了。

 
Konstantin:

我同意,现在是时候从帮助转向语言规则了,因为mql5本质上是一种不同的编程语言

有什么地方说过相反的话吗?

 
Alexey Navoykov:

该类真的是一个命名空间类吗?

是的,你是对的,它确实指的是命名空间。有一个单独的条款是针对班级的,但重点是一样的。

9.2.3.2  Static data members
[class.static.data]
2. The declaration of a non-inline static data member in its class definition is not a definition and may be of
an incomplete type other than cv void. The definition for a static data member that is not defined inline
in the class definition shall appear in a namespace scope enclosing the member’s class definition. In the
definition at namespace scope, the name of the static data member shall be qualified by its class name using
the :: operator. The initializer expression in the definition of a static data member is in the scope of its class (3.3.7).

[Example:
class process {
static process* run_chain;
static process* running;
};
process* process::running = get_main();
process* process::run_chain = running;

The static data member run_chain of class process is defined in global scope; the notation process::run_chain specifies that the member
run_chain is a member of class process and in the scope of class process. In the static data member definition, the
initializer expression refers to the static data member running of class process. — end example]
 
Alexey Viktorov:

我在什么地方说过相反的话吗?

我有说过什么相反的话吗? 你为什么要问我问题?

 
pavlick_:

编译器错误。

警报:3

我没有看到一个错误。我想这是正确的。

首先,我们给结构的静态成员 赋值5,给变量赋值3。

然后,该变量的值被复制到结构的静态成员中。

很明显,这个静态成员应该包含我们分配给该变量的值。

在我看来,这一切都非常符合逻辑。

 
Georgiy Merts:

我没有看到这个错误。在我看来,一切都很正确。

在我看来--一切都非常符合逻辑。

逻辑应该是统一的,而不是选择性的(否则就不是逻辑)。

如果在这里

int a = 1;
struct A {
    void f();
    int a;
};
void A::f()
{
   a = 2; //(*)
}

(*)意味着A::a=2,而不是::a=2

它也应该意味着S::q = S::z,而不是S::q = ::z

 

我很抱歉。我不明白。那么,是你杀了我吗?或者你有吗?

我可以在这个论坛上撒尿吗?
 
B0biThec:

我很抱歉。我不明白。那么,是你杀了我吗?或者你有吗?

我可以在这个论坛上撒尿 吗?

你因发送垃圾邮件而被禁言24小时。如果你继续发送垃圾邮件,就会被禁言一周,然后一个月,然后你的账户被删除,你在正确的地方撒尿

 
Artyom Trishkin:

你因发送垃圾邮件而被禁言24小时。继续发送垃圾邮件一周,然后一个月,然后删除你的账户,并在适当的地方撒尿

放假回来了?