Skip to content

Make usage of this more apparent #458

@gamebox

Description

@gamebox

This probably is more revealing about me, but I went through the tutorial in order, and came out not understanding that classes, and more importantly for my usages that this was a thing.

My specific context was a tag reference of the current actor that could be sent to another actor so that they could have some bi-directional communication.

This was discussed in Zulip with @SeanTAllen (my zulip client on linux won't let me copy the link, sorry look in #beginner-help > "Self" reference for actors).

I think the sugar of not needing to use this when setting actor and class fields, or calling their methods and behaviors led me to not even think of it.
:
There is one reference in "Expression > Methods"

Functions are always called on an object. Again just specify the object, followed by a dot, followed by the name of the function to call. If the object to call on is omitted then the current object is used (i.e. this).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions