Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update native repr handling to fit latest thinking.
  • Loading branch information
jnthn committed May 24, 2011
1 parent 3339a14 commit 2ca4db0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/6model/reprs/P6int.c
Expand Up @@ -36,8 +36,8 @@ static PMC * instance_of(PARROT_INTERP, PMC *self, PMC *WHAT) {
/* Checks if a given object is defined (from the point of view of the
* representation). */
static INTVAL defined(PARROT_INTERP, PMC *self, PMC *obj) {
/* Native types cannot be undefined. */
return 1;
/* Native types only ever exist as the type object, which is undefined. */
return 0;
}

/* Helper to die because this type doesn't support attributes. */
Expand Down
4 changes: 2 additions & 2 deletions src/6model/reprs/P6num.c
Expand Up @@ -36,8 +36,8 @@ static PMC * instance_of(PARROT_INTERP, PMC *self, PMC *WHAT) {
/* Checks if a given object is defined (from the point of view of the
* representation). */
static INTVAL defined(PARROT_INTERP, PMC *self, PMC *obj) {
/* Native types cannot be undefined. */
return 1;
/* Native types only ever exist as the type object, which is undefined. */
return 0;
}

/* Helper to die because this type doesn't support attributes. */
Expand Down
4 changes: 2 additions & 2 deletions src/6model/reprs/P6str.c
Expand Up @@ -36,8 +36,8 @@ static PMC * instance_of(PARROT_INTERP, PMC *self, PMC *WHAT) {
/* Checks if a given object is defined (from the point of view of the
* representation). */
static INTVAL defined(PARROT_INTERP, PMC *self, PMC *obj) {
/* Native types cannot be undefined. */
return 1;
/* Native types only ever exist as the type object, which is undefined. */
return 0;
}

/* Helper to die because this type doesn't support attributes. */
Expand Down

0 comments on commit 2ca4db0

Please sign in to comment.