First time here? Check out the FAQ!
x

HotValue does not generate Fader in Encapsulated Class

0 votes
341 views

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.

http://kyma.symbolicsound.com/qa/?qa=blob&qa_blobid=4721817604343205693

asked Aug 10, 2019 in Capytalk & Smalltalk by domenico-cipriani (Master) (3,110 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) (15,840 points)
selected Aug 11, 2019 by domenico-cipriani
oh thanks Alan, you are so good :)
and the compiler is very wise :)
...