toon-members
[Top][All Lists]
Advanced

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

Re: [Toon-members] New TooN


From: E. Rosten
Subject: Re: [Toon-members] New TooN
Date: Thu, 8 Jan 2009 11:30:59 +0000 (GMT)

On Wed, 7 Jan 2009, Georg Klein wrote:

So how does this one avoid the badness? Can everything be cast to everything else?

This one relies on passing pointers around, so things like slices will have a pointer where they didn't before. The optimizer in recent GCCs seems to be good enough that this isn't a problem for efficiency. The pointers are all passed around as const (in that the pointer value can't be modified).

Also, parts have been reordered, so that the Vector class now deals with everything: the FixedVector et. al have gone. This makes writing (templated) functions which can accept Vectors or slices or matrix slices or whatever much easier.

-Ed



--
(You can't go wrong with psycho-rats.)(http://mi.eng.cam.ac.uk/~er258)

/d{def}def/f{/Times s selectfont}d/s{11}d/r{roll}d f 2/m{moveto}d -1
r 230 350 m 0 1 179{ 1 index show 88 rotate 4 mul 0 rmoveto}for/s 12
    d f pop 235 420 translate 0 0 moveto 1 2 scale show showpage




reply via email to

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