Alexander Kolbasov writes:
> > Alexander Kolbasov writes:
> > > Filed 
> > > 
> > > 6624541 dtrace aggregations should assume signed arguments
> > 
> > Perhaps a silly question ... but why not just follow the signedness of
> > the argument provided?
> > 
> > If the user provides an unsigned data type to the aggregation, then do
> > unsigned arithmetic on it.  If he provides a signed type, do signed
> > arithmetic.
> 
> This would be nice, but I don't know whether DTrace framework allows passing 
> argument types to aggregation functions.

I'm not sure I understand.

If I say this:

        @foo[execname] = sum(bar);

Doesn't 'bar' have some type, at least by default?  I had thought that
dtrace tracked types dynamically.  It seems to do so when I cast a
value and assign it to "self->blah".  It also seems to keep track of
types if I try to pass in something that can't work.

Why doesn't the expression have a type?

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to