[racket] Override primitive operations
Thank you.
On 21-05-2011 15:09, Robby Findler wrote:
> Not map, no. But you can do this with printing and the function call
> operation using struct properties (ie you create a new struct and then
> attach a property to it that shows how the operations should treat
> instances of your new struct).
>
> Robby
>
> 2011/5/21 José Lopes<jose.lopes at ist.utl.pt>:
>> Hello,
>>
>> Is it possible to override primitive operations, such as map, to work with
>> user-defined types? If affirmative, is it also possible to reference the
>> default operation after override?
>>
>> Regards,
>> José
>>
>> --
>> José António Branquinho de Oliveira Lopes
>> 58612 - MEIC-A
>> jose.lopes at ist.utl.pt
>>
>> _________________________________________________
>> For list-related administrative tasks:
>> http://lists.racket-lang.org/listinfo/users
>>
--
José António Branquinho de Oliveira Lopes
58612 - MEIC-A
jose.lopes at ist.utl.pt