Has standard implementation of Self unlimited integer arithmetics as Smalltalk?
I'am new in Self and I have no port for Windows to simply watch it.
Viktor
On Wednesday 21 August 2002 14:42, Viktor wrote:
Has standard implementation of Self unlimited integer arithmetics as Smalltalk?
Yes, we call them BigInts. They have an explicit slot for the sign, unlike the common Smalltalk implementation of separate LargePositiveIntegers and LargeNegativeIntegers. But they work just like their Smalltalk counterparts.
I'am new in Self and I have no port for Windows to simply watch it.
We need to fix this. If nobody else does a Win port by the end of this century I will take care of this myself :-(
- Jecel
I'am new in Self and I have no port for Windows to simply watch it.
We need to fix this. If nobody else does a Win port by the end of this century I will take care of this myself :-(
- Jecel
Not necessary (maybe). I am trying to implement it just now.
Viktor
Do you thing that unlimited integer arithmetics is (from practical point of view) usable? Is not 64-bit integers good enough for every purpouses?
Viktor
If an object with code (method or block) is assigned into read/write (data) slot, then readed from the the slot, it is simply returned, not evaluated, isn't it?
Viktor
Viktor wrote:
If an object with code (method or block) is assigned into read/write (data) slot, then readed from the the slot, it is simply returned, not evaluated, isn't it?
Normally, you cannot create a literal method object and access it. Self automatically evaluates a method when it sees brackets ( ... ). The only exception is the method slot initialization construction (| method = ( ^self ) |). But when you try to access method slot it is evaluated and the result of the method invocation is returned.
Blocks behave differently, they are always evaluated manually by sending one of the 'value', 'value:', ... messages to a block object.
Though you are still able to access method objects programmatically. You need to use mirrors for that.
If an object with code (method or block) is assigned into read/write
(data)
slot, then readed from the the slot, it is simply returned, not
evaluated,
isn't it?
Normally, you cannot create a literal method object and access it. Self automatically evaluates a method when it sees brackets ( ... ). The only exception is the method slot initialization construction (| method = ( ^self ) |). But when you try to access method slot it is evaluated and the result of the method invocation is returned.
Blocks behave differently, they are always evaluated manually by sending one of the 'value', 'value:', ... messages to a block object.
Though you are still able to access method objects programmatically. You need to use mirrors for that.
Uladzimir.
Thank you, now it is clear and much better than I expected.
Now something about weak references - there is absolutely nothing about it in "The Self 4.0 Programmers Reference Manual", but I suppose this feature _must_ be in Self. Am I right? What kind of references can be weak? Only indexed references in vector of objects? By which objects is such weak reference replaced by GC, by nil or by some special object (#dead)? Is some message sent to owner of weak object when one is expired?
Exists something more detailed about Self than ""The Self 4.0 Programmers Reference Manual"?
Viktor
Viktor wrote:
Now something about weak references - there is absolutely nothing about it in "The Self 4.0 Programmers Reference Manual", but I suppose this feature _must_ be in Self. Am I right? What kind of references can be weak? Only indexed references in vector of objects? By which objects is such weak reference replaced by GC, by nil or by some special object (#dead)? Is some message sent to owner of weak object when one is expired?
Self doesn't support weak references (and exceptions to mention more).
Exists something more detailed about Self than ""The Self 4.0 Programmers Reference Manual"?
VM Sources are the best doc.
--
Uladzimir.
Now something about weak references - there is absolutely nothing about
it
in "The Self 4.0 Programmers Reference Manual", but I suppose this
feature
_must_ be in Self. Am I right? What kind of references can be weak? Only indexed references in vector of objects? By which objects is such weak reference replaced by GC, by nil or by some special object (#dead)? Is
some
message sent to owner of weak object when one is expired?
Self doesn't support weak references (and exceptions to mention more).
Uh oh... are you serious? How you can make an application without weak references?!
Well, my VM supports them. But cannot run neither simple program...
Viktor
By the way, I forgot to ask how is the situation in Praha? I saw in the TV that at least some parts of the Univerzity Karlovy where "under water". Are you working for the IT department? Some of my co-workers are currently at University of Dresden in the IT department to help them to reestablish everything. It looks horrible there.
Thorsten Dittmar
Ooops,
Wrong address. That happen my all the time. I'm just to stupid ;-) Sorry.
On 8/22/02 6:04 PM, "Thorsten Dittmar" thorsten.dittmar@daedalos.com wrote:
By the way, I forgot to ask how is the situation in Praha? I saw in the TV that at least some parts of the Univerzity Karlovy where "under water". Are you working for the IT department? Some of my co-workers are currently at University of Dresden in the IT department to help them to reestablish everything. It looks horrible there.
Thorsten Dittmar
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
I am not living in Praha, but Brno (200 km to East from Praha). There are no floods here and I know the situation only from TV and informations from my friends. My friends (from Praha) said to me that it is not so drastic as it looks on TV.
Viktor
By the way, I forgot to ask how is the situation in Praha? I saw in the TV that at least some parts of the Univerzity Karlovy where "under water".
Are
you working for the IT department? Some of my co-workers are currently at University of Dresden in the IT department to help them to reestablish everything. It looks horrible
there.
Thorsten Dittmar
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
self-interest@lists.selflanguage.org