rlwhitcomb / utilities

Some of my personal utility programs
MIT License
2 stars 0 forks source link

Find a way to reference the result of "fileinfo" with member notation directly #611

Closed rlwhitcomb closed 1 year ago

rlwhitcomb commented 1 year ago

Right now if you try fileinfo(f).name it will complain at the "." about syntax. So, you need to assign a temp variable with the value and reference that, as in:

var finfo = fileinfo(f)
finfo.name

So, we could make a special case, but are there other predefined functions that return an object that should be considered, and what about those that return an array; pretty sure these cause similar problems.