[DGD] Re: DGD LPC (?)

Danne Solli dsi at xinit.se
Sat Aug 1 04:27:51 CEST 1998


On Fri, 31 Jul 1998, Dano wrote:

>Um,

Uhm.

>-------------------
># code ({}) == ({})
>$68 = 0
>-------------------
>
>Is this not like a huge bug er somethin?
>I'm trying to implement a file existance check...
>
>if(get_dir(filepath)[1] != ({})) {
>  // file_exists
>} else {
>  // it doesn't.

int file_size(string str) {
  mixed *sizes;

  if (sizeof(sizes = get_dir(str)[1]) == 1)
    return sizes[0];
  else
    return -1;
}

ought to do it.

>However, ({}) ALWAYS != ({})
>Anyone got a successful dgd implementation of file_size() and/or
>file_exists()

Yeppers.

>???
>
>Dano

Cheers,
Dan Solli, dsi at xinit.se





List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list