Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

"self" in Sepples?

Name: Anonymous 2009-11-27 14:59

While dabbling with some code and trying to learn Sepples, I got stuck when I wanted to pass the object itself (inside a method of the class) as a parameter for another object, like passing self in Smalltalk. Is this possible?

Name: Anonymous 2009-11-27 15:04

It's called this in Sepples.

Name: Anonymous 2009-11-27 15:08

>>2
ribbit

Name: Anonymous 2009-11-27 15:12

>>1
"this" returns a pointer to the current object.  You cannot use "this" in static methods for obvious reasons.
"this" is immutable.
Sepples is not a real language, C++ is a real language.
I can't speak for the language but I know Smalltalk has terrible tools, I feel bad for you.

Name: Anonymous 2009-11-27 16:05

Thanks for the answer.

Name: Anonymous 2009-11-27 16:57

delete this thread

Name: Anonymous 2009-11-27 17:49

>>4
There's only one Terrible Tool that I can see in this thread, and it ain't Smalltalk.

Name: Anonymous 2009-11-27 22:51

Sepples is not a real language, C++ is a real language.
IHBT

Don't change these.
Name: Email:
Entire Thread Thread List