bug or feature?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

bug or feature?

SeanTAllen
I've noticed that file instances can lie...
( its one of the first things I check when using file objects in any  
language )

if i

create a new file instance
get mode ( XYZ reported )
something else ( in testing, me from command line ) changes mode to ZYX
get mode ( XYZ reported )

the last line should report ZYX but it reports XYZ.

i would call that a bug. is it in fact a bug or is there a reason for  
that?
if it's a bug, i'd be happy to start my learning by going through
and fixing that issue and any others that might exist in the File and
Directory objects.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: bug or feature?

Paolo Bonzini-2
Sean Allen wrote:

> I've noticed that file instances can lie...
> ( its one of the first things I check when using file objects in any
> language )
>
> if i
>
> create a new file instance
> get mode ( XYZ reported )
> something else ( in testing, me from command line ) changes mode to ZYX
> get mode ( XYZ reported )
>
> the last line should report ZYX but it reports XYZ.

Use the "refresh" method or recreate the file instance.  It is a bug
that it is undocumented. :-)  Do you want to do the patch yourself (I
guess to kernel/FilePath.st)?

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: bug or feature?

SeanTAllen

On Jan 7, 2009, at 10:38 AM, Paolo Bonzini wrote:

> Sean Allen wrote:
>> I've noticed that file instances can lie...
>> ( its one of the first things I check when using file objects in any
>> language )
>>
>> if i
>>
>> create a new file instance
>> get mode ( XYZ reported )
>> something else ( in testing, me from command line ) changes mode to  
>> ZYX
>> get mode ( XYZ reported )
>>
>> the last line should report ZYX but it reports XYZ.
>
> Use the "refresh" method or recreate the file instance.  It is a bug
> that it is undocumented. :-)  Do you want to do the patch yourself (I
> guess to kernel/FilePath.st)?

Once I get my feet under me a bit more, I'll make that the first thing  
I tackle.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk