소스 검색

String literals make fresh copies of themselves every time they are evaluated.

master
Ian Piumarta 10 달 전
부모
커밋
1bf9944ff1
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. +6
    -3
      minproto.leg

+ 6
- 3
minproto.leg 파일 보기

@ -1,9 +1,9 @@
# minproto.leg -- minimal prototype langauge for semantic experiments
#
# last edited: 2024-07-04 10:07:00 by piumarta on zora
# last edited: 2024-07-05 17:16:16 by piumarta on zora-1034.local
%{
;
;
//#define YY_DEBUG 1
#ifndef GC
@ -3907,7 +3907,10 @@ oop eval(oop exp, oop env)
# if PRIMCLOSURE
if (Lambda == type) return newClosure(exp, env);
# endif
if (Object != type) return exp;
if (Object != type) {
if (String == type) return newStringLen(_get(exp, String,value), _get(exp, String,length));
return exp;
}
if (!opt_O) {
Object_push(trace, exp);
if (opt_d && opt_v) {

불러오는 중...
취소
저장