Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @isComptime

@isComptime

Panther
Documentation


1: func @isComptime = () #ct -> Bool;

  Gets if currently in a comptime scope. If the scope is ambiguous (both comptime and runtime), it is a compilation error.

Parameters

  None.

Return Value

  Returns true if currently in a comptime scope.

Notes

  This function is meant for use in a function with attribute #rtDiff.

Example

(TODO)