Skip to content

Conversation

z-gy
Copy link

@z-gy z-gy commented Aug 4, 2024

仅完成作业1

public override void Register(Expr parent)
{
// TODO 4:注册操作
this->parent = parent;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this 作为一个引用,显然不应该使用指针的取成员运算符,而是用 this.parent;这里编译无法通过。

public override void Register(Expr parent)
{
// TODO 7:注册操作
this->parent = parent;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同样的问题。

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大体上没什么问题,但是这些计算全部都使用 .Wait() 阻塞住,这并不必要;尝试非阻塞地编写代码,尽可能地利用并行。

@asdawej asdawej added the revision needed This PR need further revision label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
revision needed This PR need further revision
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants