Project

General

Profile

Actions

Bug #310

closed

String undefined

Added by iri about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
VM_Kernel
Target version:
-
Start date:
03/05/2011
Due date:
% Done:

0%

Estimated time:

Description

When a string is undefined in the Scol machine, it takes the value "INET".

An basic example with the function _checkpack :

Scol code (a/b/c doesn't exist) :

fun test ()=
  _fooS stringTest _checkpack "a/b/c";
  ...

C (or C++) code :

/* fun [P] S */
int stringTest (mmachine m)
{
  int p;
  p = MTOP (MMpull (m));
  Mpushstrbloc (m, MMstartstr (m, p));
  return 0;
}

The console always displays :

INET

This example use _checkpack but others strings are to be considered.

To see the reason (and never use a P argument without test)

Actions

Also available in: Atom PDF