Probably because myPath is not a directory, which causes it to return .nil,
just like the documentation says.
Rick
On Thu, Jul 31, 2014 at 8:41 AM, Staffan Tylen <staffan.ty...@gmail.com>
wrote:
> I'm facing a problem with the following:
>
> files=.File~new(myPath)~list
> loop file over files~allitems
> say file
> end
>
> Error 97.1: Object "The NIL object" does not understand message "ALLITEMS"
>
> Looking in the doc I find the following strange sentence:
>
> "If the receiver object is not a directory then the result is .nil."
>
> To be honest I don't understand what this sentence means. The list method
> is supposed to return an array but for some reason I get a .nil object.
>
> Staffan
>
>
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
>
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users