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 |
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. > |
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. |
tx Ben :) go Rajula go! On Wed, Jun 7, 2017 at 6:07 PM, Ben Coman <[hidden email]> wrote:
|
Sven Thank you.
Ben thanks a lot. Will go through it. Rajula |
Free forum by Nabble | Edit this page |