Skip to content

:: (static / manual Connect)

Operator

CL++ does not use ->. :: is static scope, datatype/library names, class method definitions, and manual signal connections (you Disconnect; Janitor does not).

Vector3::new(1, 0, 1);
task::wait(1);
players.PlayerAdded::Connect(fn);
void Class::Method(...) { }

None.

The call result, or the nested name.

Vector3.new(...) · task.wait(1) · players.PlayerAdded:Connect(fn) · function Class:Method

Static / modules: task::wait, Vector3::new, BrickColor::Red().

Manual connections: players.PlayerAdded::Connect(fn) emits players.PlayerAdded:Connect(fn) with no Janitor. You own Disconnect. Prefer ~> when a janitor is in scope.

Definitions: Class::Method in a .clpp is the method body (function Class:Method).

Instance methods on a value use .: player.Kick(), workspace.FindFirstChild("x"). Protected calls use :.

task::wait(1);
players.PlayerAdded::Connect(fn);
player.FindFirstChild("x");
DataService.Server.WaitFor(p);

Emits:

task.wait(1)
players.PlayerAdded:Connect(fn)
player:FindFirstChild("x")
DataService.Server:WaitFor(p)

operator-property · operator-table · operator-janitor · class-method · Connect