Changeset 4518 for trunk/compiler
- Timestamp:
- 10/19/08 03:04:21 (3 months ago)
- Files:
-
- 1 modified
-
trunk/compiler/logtalk.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/compiler/logtalk.pl
r4517 r4518 479 479 object_property(logtalk, built_in). 480 480 481 object_property(Obj, Prop) :- % static/dynamic property482 '$lgt_current_object_'(Obj, _, _, _, _, _, _, _, _, _, Prop).483 484 481 object_property(Obj, Prop) :- 485 '$lgt_entity_property_'(Obj, Prop). 482 '$lgt_current_object_'(Obj, _, _, _, _, _, _, _, _, _, Type), 483 ( Prop = Type % static/dynamic property 484 ; '$lgt_entity_property_'(Obj, Prop) % other properties 485 ). 486 486 487 487 … … 499 499 throw(error(domain_error(category_property, Prop), category_property(Ctg, Prop))). 500 500 501 category_property(Ctg, Prop) :- % static/dynamic property502 '$lgt_current_category_'(Ctg, _, _, _, _, Prop).503 504 501 category_property(Ctg, Prop) :- 505 '$lgt_entity_property_'(Ctg, Prop). 502 '$lgt_current_category_'(Ctg, _, _, _, _, Type), 503 ( Prop = Type % static/dynamic property 504 ; '$lgt_entity_property_'(Ctg, Prop) % other properties 505 ). 506 506 507 507 … … 519 519 throw(error(domain_error(protocol_property, Prop), protocol_property(Ptc, Prop))). 520 520 521 protocol_property(Ptc, Prop) :- % static/dynamic property522 '$lgt_current_protocol_'(Ptc, _, _, _, Prop).523 524 521 protocol_property(Ptc, Prop) :- 525 '$lgt_entity_property_'(Ptc, Prop). 522 '$lgt_current_protocol_'(Ptc, _, _, _, _, Type), 523 ( Prop = Type % static/dynamic property 524 ; '$lgt_entity_property_'(Ptc, Prop) % other properties 525 ). 526 526 527 527 … … 11636 11636 '$lgt_valid_object_property'(synchronized). 11637 11637 '$lgt_valid_object_property'(threaded). 11638 '$lgt_valid_object_property'(file(_, _)). 11639 '$lgt_valid_object_property'(lines(_, _)). 11638 11640 11639 11641 … … 11644 11646 '$lgt_valid_protocol_property'((dynamic)). 11645 11647 '$lgt_valid_protocol_property'(static). 11648 '$lgt_valid_protocol_property'(file(_, _)). 11649 '$lgt_valid_protocol_property'(lines(_, _)). 11646 11650 11647 11651 … … 11653 11657 '$lgt_valid_category_property'(static). 11654 11658 '$lgt_valid_category_property'(synchronized). 11659 '$lgt_valid_category_property'(file(_, _)). 11660 '$lgt_valid_category_property'(lines(_, _)). 11655 11661 11656 11662
