DiskStore question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

DiskStore question

Rajula Vineet
Hi,

I have been looking at the DiskStore class and I came across the method defaultWorkingDirectory.

defaultWorkingDirectory
        | pathString |
        pathString := Primitives decode: Primitives imageFile.
        ^ (self pathFromString: pathString) parent

I didn`t get the implementation and I couldn`t find the class 'Primitives'. Can someone explain this part?

Thanks,
Rajula
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DiskStore question

Sven Van Caekenberghe-2
Primitives is a class variable of DiskStore, it contains an instance of FilePluginPrims.

> On 7 Jun 2017, at 11:30, Rajula Vineet <[hidden email]> wrote:
>
> Hi,
>
> I have been looking at the DiskStore class and I came across the method
> defaultWorkingDirectory.
>
> defaultWorkingDirectory
> | pathString |
> pathString := Primitives decode: Primitives imageFile.
> ^ (self pathFromString: pathString) parent
>
> I didn`t get the implementation and I couldn`t find the class 'Primitives'.
> Can someone explain this part?
>
> Thanks,
> Rajula
>
>
>
> --
> View this message in context: http://forum.world.st/DiskStore-question-tp4950122.html
> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DiskStore question

Ben Coman
Just an aside (slightly off topic) for GSoC students and other newcomers to understand the difference between: instance-variables, class-variables, and class-instance-variables;   
my post here provides an interesting exercise... 

cheers -ben

On Wed, Jun 7, 2017 at 5:52 PM, Sven Van Caekenberghe <[hidden email]> wrote:
Primitives is a class variable of DiskStore, it contains an instance of FilePluginPrims.

> On 7 Jun 2017, at 11:30, Rajula Vineet <[hidden email]> wrote:
>
> Hi,
>
> I have been looking at the DiskStore class and I came across the method
> defaultWorkingDirectory.
>
> defaultWorkingDirectory
>       | pathString |
>       pathString := Primitives decode: Primitives imageFile.
>       ^ (self pathFromString: pathString) parent
>
> I didn`t get the implementation and I couldn`t find the class 'Primitives'.
> Can someone explain this part?
>
> Thanks,
> Rajula
>
>
>
> --
> View this message in context: http://forum.world.st/DiskStore-question-tp4950122.html
> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
>



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DiskStore question

Guillermo Polito
tx Ben :)

go Rajula go!

On Wed, Jun 7, 2017 at 6:07 PM, Ben Coman <[hidden email]> wrote:
Just an aside (slightly off topic) for GSoC students and other newcomers to understand the difference between: instance-variables, class-variables, and class-instance-variables;   
my post here provides an interesting exercise... 

cheers -ben


On Wed, Jun 7, 2017 at 5:52 PM, Sven Van Caekenberghe <[hidden email]> wrote:
Primitives is a class variable of DiskStore, it contains an instance of FilePluginPrims.

> On 7 Jun 2017, at 11:30, Rajula Vineet <[hidden email]> wrote:
>
> Hi,
>
> I have been looking at the DiskStore class and I came across the method
> defaultWorkingDirectory.
>
> defaultWorkingDirectory
>       | pathString |
>       pathString := Primitives decode: Primitives imageFile.
>       ^ (self pathFromString: pathString) parent
>
> I didn`t get the implementation and I couldn`t find the class 'Primitives'.
> Can someone explain this part?
>
> Thanks,
> Rajula
>
>
>
> --
> View this message in context: http://forum.world.st/DiskStore-question-tp4950122.html
> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
>






--

   

Guille Polito


Research Engineer

French National Center for Scientific Research - http://www.cnrs.fr



Web: http://guillep.github.io

Phone: +33 06 52 70 66 13

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DiskStore question

Rajula Vineet
Sven Thank you.

Ben thanks a lot. Will go through it.

Rajula
Loading...