Bitmap : #decompress:fromByteArray:at: question.

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

Bitmap : #decompress:fromByteArray:at: question.

Jean Baptiste Arnaud
 
A understanding question:
In Bitmap
#decompress:fromByteArray:at:

primitiveFailed shouldn't be : primitiveFail ?
if no, where is define primitiveFailed ( in VM code source ), and what  
the use of it ( personal understanding )

JB

Reply | Threaded
Open this post in threaded view
|

Re: Bitmap : #decompress:fromByteArray:at: question.

Bert Freudenberg
 

On 06.11.2009, at 14:34, arnaud Jean Baptiste wrote:

> A understanding question:
> In Bitmap
> #decompress:fromByteArray:at:
>
> primitiveFailed shouldn't be : primitiveFail ?
> if no, where is define primitiveFailed ( in VM code source ), and  
> what the use of it ( personal understanding )

Load VMMaker to see the VM source code:

primitiveFail
        successFlag := false.

It causes the primitive to fail.

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re: Bitmap : #decompress:fromByteArray:at: question.

Jean Baptiste Arnaud
 
thank you, but is not exactly that i want to know

i just want to know if the call primitiveFailed in  
#decompress:fromByteArray:at: question (In class bitmap) is correct or  
if  it must be call primitiveFail( in replacement ).

because after generating vm with vmmaker, that always name  
primitivesFailed() and then i don't find any method  when i browse the  
source code (the C code)



On Nov 6, 2009, at 4:31 PM, Bert Freudenberg wrote:

>
> On 06.11.2009, at 14:34, arnaud Jean Baptiste wrote:
>
>> A understanding question:
>> In Bitmap
>> #decompress:fromByteArray:at:
>>
>> primitiveFailed shouldn't be : primitiveFail ?
>> if no, where is define primitiveFailed ( in VM code source ), and  
>> what the use of it ( personal understanding )
>
> Load VMMaker to see the VM source code:
>
> primitiveFail
> successFlag := false.
>
> It causes the primitive to fail.
>
> - Bert -
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Bitmap : #decompress:fromByteArray:at: question.

Bert Freudenberg
 
It is primitiveFail in the Trunk image, and must be. The method has  
not been touched since 2001.

- Bert -

On 06.11.2009, at 17:17, arnaud Jean Baptiste wrote:

> thank you, but is not exactly that i want to know
>
> i just want to know if the call primitiveFailed in  
> #decompress:fromByteArray:at: question (In class bitmap) is correct  
> or if  it must be call primitiveFail( in replacement ).
>
> because after generating vm with vmmaker, that always name  
> primitivesFailed() and then i don't find any method  when i browse  
> the source code (the C code)
>
>
>
> On Nov 6, 2009, at 4:31 PM, Bert Freudenberg wrote:
>
>>
>> On 06.11.2009, at 14:34, arnaud Jean Baptiste wrote:
>>
>>> A understanding question:
>>> In Bitmap
>>> #decompress:fromByteArray:at:
>>>
>>> primitiveFailed shouldn't be : primitiveFail ?
>>> if no, where is define primitiveFailed ( in VM code source ), and  
>>> what the use of it ( personal understanding )
>>
>> Load VMMaker to see the VM source code:
>>
>> primitiveFail
>> successFlag := false.
>>
>> It causes the primitive to fail.
>>
>> - Bert -
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: Bitmap : #decompress:fromByteArray:at: question.

Jean Baptiste Arnaud
 
ok thk a lot.


On Nov 6, 2009, at 5:31 PM, Bert Freudenberg wrote:

> It is primitiveFail in the Trunk image, and must be. The method has  
> not been touched since 2001.
>
> - Bert -
>
> On 06.11.2009, at 17:17, arnaud Jean Baptiste wrote:
>
>> thank you, but is not exactly that i want to know
>>
>> i just want to know if the call primitiveFailed in  
>> #decompress:fromByteArray:at: question (In class bitmap) is correct  
>> or if  it must be call primitiveFail( in replacement ).
>>
>> because after generating vm with vmmaker, that always name  
>> primitivesFailed() and then i don't find any method  when i browse  
>> the source code (the C code)
>>
>>
>>
>> On Nov 6, 2009, at 4:31 PM, Bert Freudenberg wrote:
>>
>>>
>>> On 06.11.2009, at 14:34, arnaud Jean Baptiste wrote:
>>>
>>>> A understanding question:
>>>> In Bitmap
>>>> #decompress:fromByteArray:at:
>>>>
>>>> primitiveFailed shouldn't be : primitiveFail ?
>>>> if no, where is define primitiveFailed ( in VM code source ), and  
>>>> what the use of it ( personal understanding )
>>>
>>> Load VMMaker to see the VM source code:
>>>
>>> primitiveFail
>>> successFlag := false.
>>>
>>> It causes the primitive to fail.
>>>
>>> - Bert -
>>>
>>>
>>
>
>