tim icon indicating copy to clipboard operation
tim copied to clipboard

type proc failing in .timl

Open hmbemba opened this issue 6 months ago • 1 comments

I finally got this working with windows and even added a raw:"..." directive for comments / raw html but i can't figure out how to create custom functions that the timl parser will recognize.

I'd like to get the type proc working

Any guidance?

var x = "Tim is awesome, right?"
echo $x.type
Error (5:8) Undeclared function type [UndeclaredFunction]

hmbemba avatar Jun 04 '25 03:06 hmbemba

Not easy in the main branch. The rewrite branch will have a better way to handle this. For example, type function

https://github.com/openpeeps/tim/blob/f4ce4752b658de720537fa3fface46061e909410/src/tim/engine/stdlib/libsystem.nim#L118-L130

georgelemon avatar Jun 04 '25 13:06 georgelemon