| 204 | | |
| 205 | | ########################################################################### |
| 206 | | ########################################################################### |
| 207 | | |
| 208 | | class Muldis::DB::Engine::Example::Value::Order { |
| 209 | | does Muldis::DB::Engine::Example::Value::Scalar; |
| 210 | | |
| 211 | | has Order $!v; |
| 212 | | |
| 213 | | ########################################################################### |
| 214 | | |
| 215 | | submethod BUILD (Order :$v!) { |
| 216 | | $!v = $v; |
| 217 | | return; |
| 218 | | } |
| 219 | | |
| 220 | | ########################################################################### |
| 221 | | |
| 222 | | method _root_type of Str () { |
| 223 | | return 'sys.Core.Order.Order'; |
| 224 | | } |
| 225 | | |
| 226 | | method _which of Str () { |
| 227 | | return ~$!v; |
| 228 | | } |
| 229 | | |
| 230 | | ########################################################################### |
| 231 | | |
| 232 | | method _is_equal of Order (::T $self: T $other!) { |
| 233 | | return $other!v === $self!v; |
| 234 | | } |
| 235 | | |
| 236 | | ########################################################################### |
| 237 | | |
| 238 | | method v of Order () { |
| 239 | | return $!v; |
| 240 | | } |
| 241 | | |
| 242 | | ########################################################################### |
| 243 | | |
| 244 | | } # class Muldis::DB::Engine::Example::Value::Order |
| | 540 | class Muldis::DB::Engine::Example::Value::Cat_Order { |
| | 541 | does Muldis::DB::Engine::Example::Value::Scalar; |
| | 542 | |
| | 543 | has Order $!v; |
| | 544 | |
| | 545 | ########################################################################### |
| | 546 | |
| | 547 | submethod BUILD (Order :$v!) { |
| | 548 | $!v = $v; |
| | 549 | return; |
| | 550 | } |
| | 551 | |
| | 552 | ########################################################################### |
| | 553 | |
| | 554 | method _root_type of Str () { |
| | 555 | return 'sys.Core.Cat.Order'; |
| | 556 | } |
| | 557 | |
| | 558 | method _which of Str () { |
| | 559 | return ~$!v; |
| | 560 | } |
| | 561 | |
| | 562 | ########################################################################### |
| | 563 | |
| | 564 | method _is_equal of Bool (::T $self: T $other!) { |
| | 565 | return $other!v === $self!v; |
| | 566 | } |
| | 567 | |
| | 568 | ########################################################################### |
| | 569 | |
| | 570 | method v of Order () { |
| | 571 | return $!v; |
| | 572 | } |
| | 573 | |
| | 574 | ########################################################################### |
| | 575 | |
| | 576 | } # class Muldis::DB::Engine::Example::Value::Cat_Order |
| | 577 | |
| | 578 | ########################################################################### |
| | 579 | ########################################################################### |
| | 580 | |
| 608 | | all Muldis D implementations must have, namely: Bool, Order, Int, Rat, |
| 609 | | Blob, Text, Tuple, Relation, QuasiTuple, QuasiRelation, and the Cat.* |
| 610 | | types. |
| | 608 | all Muldis D implementations must have, namely: Bool, Int, Rat, Blob, Text, |
| | 609 | Tuple, Relation, QuasiTuple, QuasiRelation, and the Cat.* types. |