lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, May 23, 2007 at 02:57:41PM -0300, Tomas Guisasola Gorham wrote:
> On Wed, 23 May 2007, Jerome Vuarand wrote:
> > > lfs.linkattributes("link", "mode") --> "link"
> > > lfs.attributes("link", "mode") --> "file"
> > Is it not possible to add a new attribute to the attributes table ? This
> > approach wouldn't break existing apps. Something like:
> > 
> > lfs.attributes("normalfile", "mode") --> "file"
> > lfs.attributes("normalfile", "symlink") --> false
> > lfs.attributes("linkedfile", "mode") --> "file"
> > lfs.attributes("linkedfile", "symlink") --> true
> 	But what about the other information?  They are not relevant?

They are relevant, and introducing new names breaks compatibility, if
you define compatibility as "returning a table with the same members".

Sam