grauzone wrote:
Sean Kelly wrote:
== Quote from Sergey Gromov (snake.sc...@gmail.com)'s article
Sun, 29 Mar 2009 17:42:48 -0400, Chad J wrote:
Maybe what you are looking for are the GC.removeRoot or GC.removeRange
functions which are available in both Phobos and Tango?
http://www.dsource.org/p
Actually, scratch that. Any 4 byte pattern can look like a pointer.
Unless you manage to encode it in a way the 4 byte cells look like
they're pointing into an address range not managed by the GC. For
example, most OSes reserve the last 1 or 2 GBs for the kernel. If your
byte quadruple looks li
Sean Kelly wrote:
== Quote from Sergey Gromov (snake.sc...@gmail.com)'s article
Sun, 29 Mar 2009 17:42:48 -0400, Chad J wrote:
Maybe what you are looking for are the GC.removeRoot or GC.removeRange
functions which are available in both Phobos and Tango?
http://www.dsource.org/projects/tango/doc
Bill Baxter wrote:
On Tue, Mar 31, 2009 at 7:37 AM, Christopher Wright wrote:
grauzone wrote:
Christopher Wright wrote:
grauzone wrote:
Jarrett Billingsley wrote:
On Sun, Mar 29, 2009 at 4:42 PM, Leandro Lucarella
wrote:
This was discussed several times in the past. For example:
http://w
== Quote from Sergey Gromov (snake.sc...@gmail.com)'s article
> Sun, 29 Mar 2009 17:42:48 -0400, Chad J wrote:
> >
> > Maybe what you are looking for are the GC.removeRoot or GC.removeRange
> > functions which are available in both Phobos and Tango?
> > http://www.dsource.org/projects/tango/docs/cu
Sun, 29 Mar 2009 17:42:48 -0400, Chad J wrote:
> Simon TRENY wrote:
>> Hello,
>>
>> I have a class "A" and I'd like to keep a list of all the created instances
>> of this class. To do that, I have a static List!(A) in the A class and, in
>> the constructor, I add each new instance to this list.
On Tue, Mar 31, 2009 at 7:37 AM, Christopher Wright wrote:
> grauzone wrote:
>>
>> Christopher Wright wrote:
>>>
>>> grauzone wrote:
Jarrett Billingsley wrote:
>
> On Sun, Mar 29, 2009 at 4:42 PM, Leandro Lucarella
> wrote:
>>
>> This was discussed several times in t
grauzone wrote:
Christopher Wright wrote:
grauzone wrote:
Jarrett Billingsley wrote:
On Sun, Mar 29, 2009 at 4:42 PM, Leandro Lucarella
wrote:
This was discussed several times in the past. For example:
http://www.digitalmars.com/d/archives/digitalmars/D/learn/weak_references_13301.html
htt
On Mon, Mar 30, 2009 at 8:04 AM, bearophile wrote:
> grauzone:
>> First, I doubt this actually works. [...] To actually hide the pointer from
>> the GC, you could XOR the size_t value with a constant.<
>
> This is may be a stupid idea: Can't the OP just allocate with
> std.c.stdlib.malloc a bloc
grauzone:
> First, I doubt this actually works. [...] To actually hide the pointer from
> the GC, you could XOR the size_t value with a constant.<
This is may be a stupid idea: Can't the OP just allocate with
std.c.stdlib.malloc a block of void* pointers (plus keep an int length too),
fill them
Christopher Wright wrote:
grauzone wrote:
Jarrett Billingsley wrote:
On Sun, Mar 29, 2009 at 4:42 PM, Leandro Lucarella
wrote:
This was discussed several times in the past. For example:
http://www.digitalmars.com/d/archives/digitalmars/D/learn/weak_references_13301.html
http://www.digitalma
Part of the reason I wrote it and made it available was to serve as a
focal point for such critiques. If you think it doesn't work and can
fix it, please do so!
--bb
On Mon, Mar 30, 2009 at 7:00 AM, grauzone wrote:
> Jarrett Billingsley wrote:
>>
>> On Sun, Mar 29, 2009 at 4:42 PM, Leandro Luc
grauzone wrote:
Jarrett Billingsley wrote:
On Sun, Mar 29, 2009 at 4:42 PM, Leandro Lucarella
wrote:
This was discussed several times in the past. For example:
http://www.digitalmars.com/d/archives/digitalmars/D/learn/weak_references_13301.html
http://www.digitalmars.com/d/archives/digitalma
Jarrett Billingsley wrote:
On Sun, Mar 29, 2009 at 4:42 PM, Leandro Lucarella wrote:
This was discussed several times in the past. For example:
http://www.digitalmars.com/d/archives/digitalmars/D/learn/weak_references_13301.html
http://www.digitalmars.com/d/archives/digitalmars/D/learn/Soft_wea
Simon TRENY wrote:
> Hello,
>
> I have a class "A" and I'd like to keep a list of all the created instances
> of this class. To do that, I have a static List!(A) in the A class and, in
> the constructor, I add each new instance to this list. This gives me the
> following code:
>
> class A {
>
On Sun, Mar 29, 2009 at 4:42 PM, Leandro Lucarella wrote:
>
> This was discussed several times in the past. For example:
> http://www.digitalmars.com/d/archives/digitalmars/D/learn/weak_references_13301.html
> http://www.digitalmars.com/d/archives/digitalmars/D/learn/Soft_weak_references_8264.html
Simon TRENY, el 29 de marzo a las 16:33 me escribiste:
> Hello,
>
> I have a class "A" and I'd like to keep a list of all the created
> instances of this class. To do that, I have a static List!(A) in the
> A class and, in the constructor, I add each new instance to this list.
> This gives me the
Hello,
I have a class "A" and I'd like to keep a list of all the created instances of
this class. To do that, I have a static List!(A) in the A class and, in the
constructor, I add each new instance to this list. This gives me the following
code:
class A {
private static List!(A) s_instance
18 matches
Mail list logo