Panther Search Documentation Tutorials Devlogs Downloads Source Code

Documentation > Panther Documentation > Intrinsics > @isComptime

@isComptime

Panther
Documentation


Note

Information on this page may be incorrect / out-of-date. An updated version of the site (powered by Panther!) is coming soon, which will include all fixes.

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)