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.
Primitives is a class variable of DiskStore, it contains an instance of FilePluginPrims.
On 7 Jun 2017, at 11:30, Rajula Vineet <Vineet.Reddy@iiitb.org> 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... http://forum.world.st/Class-vars-and-inst-vars-of-a-class-tp4749910p4749914.... cheers -ben On Wed, Jun 7, 2017 at 5:52 PM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Primitives is a class variable of DiskStore, it contains an instance of FilePluginPrims.
On 7 Jun 2017, at 11:30, Rajula Vineet <Vineet.Reddy@iiitb.org> 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.
tx Ben :) go Rajula go! On Wed, Jun 7, 2017 at 6:07 PM, Ben Coman <btc@openinworld.com> 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... http://forum.world.st/Class-vars-and-inst-vars-of-a-class- tp4749910p4749914.html
cheers -ben
On Wed, Jun 7, 2017 at 5:52 PM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Primitives is a class variable of DiskStore, it contains an instance of FilePluginPrims.
On 7 Jun 2017, at 11:30, Rajula Vineet <Vineet.Reddy@iiitb.org> 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/DiskStor e-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* <http://www.cnrs.fr> *Web:* *http://guillep.github.io* <http://guillep.github.io> *Phone: *+33 06 52 70 66 13
Sven Thank you. Ben thanks a lot. Will go through it. Rajula -- View this message in context: http://forum.world.st/DiskStore-question-tp4950122p4950423.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (4)
-
Ben Coman -
Guillermo Polito -
Rajula Vineet -
Sven Van Caekenberghe