WerWolv / Documentation

4 stars 13 forks source link

Missing information on `typenameof` #20

Open paxcut opened 3 months ago

paxcut commented 3 months ago

The Expressions section on Pattern Language has a subsection for type operators where sizeof and addressof are introduced yet nothing is said about typenameof. Maybe the reason is that typenameof is not defined as a provider operator (typenameof($) returns an error).

If addressof($) returns the base address of the input and sizeof($) returns the size of the input maybe typenameof($) should return the name of the input file which is kind of hard to get using the provider library function.

C3pa commented 2 weeks ago

So, this being an issue in the docs repo, I'd recommend only requesting that typenameof be added to docs here, while the feature request that typenameof($) returns the name of the input file be forwarded to pattern language repository.