L
Laura Stern
Guest
I agree it is not intuitive, but Brian is correct. The AVM doesn't really know the ON Trigger exists until it has run across the ON statement in the execution stream. When we get to it, we don't run the contents of the block, but we set the trigger up so that when the CREATE happens we then know to run it. This is counter intuitive because it is not like anything else in the language - like internal procedures or methods. Those do not have to occur above the point where we run them. But ON triggers do.
Continue reading...
Continue reading...