#3 print and writef methods output quote characters as well

오픈
kzimmermann9 년 전을 오픈 · 9개의 코멘트
kzimmermann 코멘트됨, 9 년 전

When writing

printf " Hello, World! "

The output is:

" Hello, World! "

This is a wrong implementation that also happens with writef. It should not have the " character. The correct output is:

Hello, World!
When writing printf " Hello, World! " The output is: " Hello, World! " This is a wrong implementation that also happens with `writef`. It should not have the `"` character. The correct output is: Hello, World!
Deleted User 코멘트됨, 9 년 전

I also needed to say.

Oh yes In your example Malio program.

You used constants in the methods.

I should make this clear in the docs

But arguments to methods and functions can only be variables.

Hence helloworld is not

print " Hello World "

But rather

string phrase = " Hello World " print phrase

I also needed to say. Oh yes In your example Malio program. You used constants in the methods. I should make this clear in the docs But arguments to methods and functions can only be variables. Hence helloworld is not print " Hello World " But rather string phrase = " Hello World " print phrase
Deleted User 코멘트됨, 9 년 전

I also needed to say.

Oh yes In your example Malio program.

You used constants in the methods.

I should make this clear in the docs

But arguments to methods and functions can only be variables.

Hence helloworld is not

print " Hello World "

But rather

string phrase = " Hello World " print phrase

I also needed to say. Oh yes In your example Malio program. You used constants in the methods. I should make this clear in the docs But arguments to methods and functions can only be variables. Hence helloworld is not print " Hello World " But rather string phrase = " Hello World " print phrase
Deleted User 코멘트됨, 9 년 전

Also in the make script.

Doesn't the second line require rights to install. Root.

Like

make install
sudo make install
Also in the make script. Doesn't the second line require rights to install. Root. Like ```` make install sudo make install ````
Deleted User 코멘트됨, 9 년 전

Also in the make script.

Doesn't the second line require rights to install. Root.

Like

make install
sudo make install
Also in the make script. Doesn't the second line require rights to install. Root. Like ```` make install sudo make install ````
Deleted User 코멘트됨, 9 년 전

Maybe look for a strip function for strings in C++

Maybe look for a strip function for strings in C++
Deleted User 코멘트됨, 9 년 전

And strip from beginning to trailing the " and ".

And strip from beginning to trailing the `" ` and ` "`.
Deleted User 코멘트됨, 9 년 전

And strip from beginning to trailing the " and ".

And strip from beginning to trailing the `" ` and ` "`.
Deleted User 코멘트됨, 9 년 전

And strip from beginning to trailing the " and ".

And strip from beginning to trailing the `" ` and ` "`.
kzimmermann 코멘트됨, 9 년 전
소유자

I'll make a note of that. That means that

print " Some literal "

should raise an error, right?

I'm trying to map all the possible cases, so that I can make the interpreter behave exactly as specified...

Yes, for most of the cases in vanilla configuration, make install will require root access to /usr/local/bin. But I think that the error message is pretty straightforward as it is, so the user can infer it.

String manipulation in C++ is a little messy... but the templating library and algorithms from C++11 do make it slightly easier. Let's see if I can make it just right!

I'll make a note of that. That means that print " Some literal " should raise an error, right? I'm trying to map all the possible cases, so that I can make the interpreter behave exactly as specified... Yes, for most of the cases in vanilla configuration, `make install` will require root access to `/usr/local/bin`. But I think that the error message is pretty straightforward as it is, so the user can infer it. String manipulation in C++ is a little messy... but the templating library and algorithms from C++11 do make it slightly easier. Let's see if I can make it just right!
로그인하여 이 대화에 참여
레이블 없음
마일스톤 없음
담당자 없음
참여자 2명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.