Bernd Mueller wrote:
> Denver Braughler wrote:
> > Bernd Mueller wrote:
> >>Set file=##class(%File).%New("file.txt") ...
> >>file.SizeGet()
> > I believe that method resolves to $ZU(140,1,"file.txt").
> Wrong!

What is wrong?
(Actually, you are wrong.  I am correct.)

> SizeGet() is a method from the Stream-Interface

In this case, not really - ##class(%File).SizeGet() is a method from %File.

Class %Library.File Extends %AbstractStream [ ProcedureBlock ]
{

Method SizeGet() As %Integer [ CodeMode = expression ]
{
..GetFileSize(..Name)
}

}

> and it works ...

On Windows, as I stated.

> > I don't know whether it works on every platform.
> > What platforms have you tried it on?
> on Windows. But i think it will work on every platform.

Yeah, I hope so too.
But if we don't know, and the person is using VMS, so it 
is up to us to be responsible to say the limit of what we know.
And we only know for Windows for certain.


> > (Of course, I don't actually code the $ZU() myself.
> > I also use the ##class(%File) wrapper.)

Reply via email to