First time here? Check out the FAQ!

HotValue does not generate Fader in Encapsulated Class

0 votes

hello, hello.

So I am encapsulating a new class, but I dont know why the hot value contained in a field does not generate any fader. my previous tests were working but this not. the previous classes I encapsulated have less array but are exxactly the same.

asked Aug 10, 2019 in Capytalk & Smalltalk by domenico-cipriani (Adept) (2,830 points)

1 Answer

0 votes
Best answer
I think this is because of a compiler optimisation.

If you change some of the patterns so they are not all the same then the !SelectPattern VCS control appears. If all the patterns are identical then it doesn't appear (because it would have no effect, so I suspect the compiler is optimising out the array selection inside your class).
answered Aug 10, 2019 by alan-jackson (Virtuoso) (14,620 points)
selected Aug 11, 2019 by domenico-cipriani
oh thanks Alan, you are so good :)
and the compiler is very wise :)