I too recomend 'foreach because it seems more clear as well.=20
might also want to look at

either dir? aFile[... ][... ]

On Apr 10, 2005 3:09 PM, Vincent Ecuyer <[EMAIL PROTECTED]> wrote:
>=20
> Hi Janeks,
>=20
> > readChaptDir2: func [ thisDir ] [
> >       rez: copy thisDir
> 'rez is a %filename here ('copy don't change the datatype,)
> so result string is a very long %filename !
>=20
> > repend rez [ "<br>dir:" join thisDir aFile ]
> 'rez is already initialized with the full dir name,
> you don't need to add it.
>=20
> instead of using copy/deep, you can replace 'repeat by 'foreach,
> so your function becomes:
>=20
> readChaptDir2: func [ thisDir /local rez ] [
>         rez: to-string thisDir
>         foreach aFile read thisDir [
>                 either #"/" =3D last aFile [
>                         repend rez "<br>dir:"
>                         repend rez readChaptDir2 join thisDir aFile
>                 ][
>                         repend rez [ <br> aFile ]
>                 ]
>=20
>         ]
>         return rez
> ]
>=20
> --Vincent
>=20
>=20
> __________________________________________________________________
> D=E9couvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos=
 mails !
> Cr=E9ez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>=20
>=20


--=20
   ... nice weather   eh
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to