[chuck-users] class abuse

Andrew C. Smith acsmith at willamette.edu
Thu Oct 1 09:57:50 EDT 2009


[ArraySet.ck]:line(84): function 'iterator at 0@Set' was defined with
return type 'Iterator' -- but returning type 'ArraySetIterator'
[ArraySet.ck]: ...in function 'iterator'

My guess is that the compiler does NOT know about ArraySetIterator,
but is rather just parroting the line "ArraySetIterator iterator," and
doesn't find out about it until later. This is where C would use class
prototypes (or whatever they're called) in a header file, but I'm not
sure if ChucK can do that.

(Kas & David): I think it's a priority issue here--when there's a
fairly simple workaround, the limited development resources (Ge) are
probably better spent on things like GC, and these things can be
referenced on the list. I think the best solution for things like this
would be continual updating of the wiki, because the wiki does have
the potential to be a fantastic document, given some community
involvement.

Andrew

2009/10/1 Kassen <signal.automatique at gmail.com>:
> David;
>
>>
>> I do. This is one of the things that really gets up my nose in ChucK.
>>
>
> Fair enough, I see your point, though I do wonder why you didn't report it
> then.
>
>>
>> So it's a bug that you know how to fix?
>>
>
> Well, no, I was trying to figure out where and how things were going wrong.
> When there are a few bugs that act along the same lines they might
> -together- describe a structural issue. It wasn't the most profound of
> statements, I'll admit.
>
> Yours,
> Kas.
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
>


More information about the chuck-users mailing list