Beatris (Gość)
| | This can happen either because a subclass includes a slot specifier with the same name as a slot specified in a superclass or because multiple superclasses specify slots with the same name.
In the edge case, when the software is relatively simple web service while an infrastructure contains WAF and API Gateway deployed in front of the AWS Lambda Functions running across multiple AZ, the response time may characterize more infra rather than software. Another advantage to using accessor functions rather than direct access to slots via SLOT-VALUE is that they let you limit the ways outside code can modify a slot.8 It may be fine for users of the bank-account class to get the current balance, but you may want all modifications to the balance to go through other functions you'll provide, such as deposit and withdraw.
Since you don't want to disturb that, the most common way to add custom initialization code is to define an :after method specialized on your class.6 For instance, suppose you want to add a slot account-type that needs to be set to one of the values :gold, :silver, or :bronze based on the account's initial balance.
Here is my website ... daer dayclub (http://www.smblind.com/g5/bbs/board.php?bo_table=free&wr_id=977371) |