|
1 | 1 | {
|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 |
| - "attachments": {}, |
5 | 4 | "cell_type": "markdown",
|
6 | 5 | "id": "1ccf1b85-e8e1-445c-9a1c-307c615c6152",
|
7 | 6 | "metadata": {},
|
|
34 | 33 | "text/plain": [
|
35 | 34 | "Logtalk 3.71.0-b01\n",
|
36 | 35 | "SWI-Prolog 9.1.16\n",
|
37 |
| - "Logtalk Jupyter kernel 0.7.0-beta" |
| 36 | + "Logtalk Jupyter kernel 0.7.1-beta" |
38 | 37 | ]
|
39 | 38 | },
|
40 | 39 | "metadata": {},
|
|
580 | 579 | "id": "b1abe300-f4ae-4d85-a86a-52055f382538",
|
581 | 580 | "metadata": {},
|
582 | 581 | "source": [
|
583 |
| - "A message is valid if the corresponding predicate is declared (and the sender is within scope) but it will fail, rather then throwing an error, if the predicate is not defined. This is called the _closed-world assumption_. For example, consider the following object, saved in a `foo.lgt` file:" |
| 582 | + "A message is valid if the corresponding predicate is _declared_ (and the sender is within scope) but it will fail, rather then throwing an error, if the predicate is not _defined_. This is called the _closed-world assumption_. For example, consider the following object, saved in a `foo.lgt` file:" |
584 | 583 | ]
|
585 | 584 | },
|
586 | 585 | {
|
|
618 | 617 | "id": "dba53531-2c93-42e3-ba42-66aa044c5d6f",
|
619 | 618 | "metadata": {},
|
620 | 619 | "source": [
|
621 |
| - "Loading the file and trying to call the `bar/0` predicate fails as expected. Note that this is different from calling an _unknown_ predicate, which results in an error:" |
| 620 | + "Loading the file and trying to call the `bar/0` predicate fails as expected:" |
622 | 621 | ]
|
623 | 622 | },
|
624 | 623 | {
|
|
634 | 633 | {
|
635 | 634 | "data": {
|
636 | 635 | "text/plain": [
|
637 |
| - "\u001b[1;31mfalse" |
| 636 | + "\u001b[1mtrue" |
638 | 637 | ]
|
639 | 638 | },
|
640 | 639 | "metadata": {},
|
641 | 640 | "output_type": "display_data"
|
642 | 641 | }
|
643 | 642 | ],
|
644 | 643 | "source": [
|
645 |
| - "foo::bar." |
| 644 | + "\\+ foo::bar." |
| 645 | + ] |
| 646 | + }, |
| 647 | + { |
| 648 | + "cell_type": "markdown", |
| 649 | + "id": "24b0beac", |
| 650 | + "metadata": {}, |
| 651 | + "source": [ |
| 652 | + "Note that this is different from calling an _unknown_ predicate, which results in an error:" |
646 | 653 | ]
|
647 | 654 | },
|
648 | 655 | {
|
|
1419 | 1426 | {
|
1420 | 1427 | "data": {
|
1421 | 1428 | "text/plain": [
|
1422 |
| - "call: list <-- member(_59438,[1,2,3]) from user\n", |
| 1429 | + "call: list <-- member(_59586,[1,2,3]) from user\n", |
1423 | 1430 | "exit: list <-- member(1,[1,2,3]) from user\n",
|
1424 | 1431 | "exit: list <-- member(2,[1,2,3]) from user\n",
|
1425 | 1432 | "exit: list <-- member(3,[1,2,3]) from user"
|
|
0 commit comments