Also while pointer equality '== might be fine in this case '= makes more sense to me
You are right. But that does not change the fact that your code will misbehave if you do not define a name. 2. You did not mentioned mention how it does misbehavior so i assumed.
Hi Johann, I think that is not correct. In the first place I think I don't need a name property. Only the 'category! In the second place: (get 'name emp1) will ALWAYS return NIL, because the function call is incorrect. It should be: (get emp1 'name) In my examples this works ok: : (put emp1 'category 'engineer) -> engineer : (get emp1 'category) -> engineer Also this works: : (with emp1 (prinl (: category))) engineer -> engineer Best, Arie 2018-06-10 16:14 GMT+02:00 Johann-Tobias Schäg <johtob...@gmail.com>:
|
- Stuck at PLEAC example Arie van Wingerden
- Re: Stuck at PLEAC example Johann-Tobias Schäg
- Re: Stuck at PLEAC example Arie van Wingerden
- Re: Stuck at PLEAC example Johann-Tobias Schäg
- Re: Stuck at PLEAC example Johann-Tobias Schäg
- Re: Stuck at PLEAC example Johann-Tobias Schäg
- Re: Stuck at PLEAC example Johann-Tobias Schäg
- Re: Stuck at PLEAC exam... Arie van Wingerden
- Re: Stuck at PLEAC example Arie van Wingerden
- Re: Stuck at PLEAC example Arie van Wingerden
- Re: Stuck at PLEAC example Arie van Wingerden
- Re: Stuck at PLEAC example Alexander Burger
- Re: Stuck at PLEAC example Arie van Wingerden
- Re: Stuck at PLEAC example Arie van Wingerden