chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] immutable objects


From: felix
Subject: Re: [Chicken-users] immutable objects
Date: Wed, 28 Aug 2002 20:17:53 +0200

address@hidden wrote:
> 
> How do I flag an object as immutable, so that, say, string-set! or
> set-car! or vector-set! etc. etc. won't work on it?

This isn't supported, unfortunately. You would have to supply your own 
mutation routines that check the mutated argument for being immutable.

Well, here is a totally crazy idea: `evict' the data into non-writable
memory (using `evict-to-location'), set up some code that ignores
the page-faults, etc...
This *could* work, but someone with more knowledge of UNIX/Linux
internals
might have a few clues.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]