Live data from Hacker News

BASIC in C++

github.com

11–19 of 19 posts

Re: BASIC in C++

#11

I'm still liking Visual BASIC 6.0 before the Dotnet era. A shame that newer versions of Windows have problems installing it. There is Jabaco that takes VB 6.0 syntax and compiles it to Java bytecode: http://www.jabaco.org/ It doesn't have ADO database support so I can't write apps with Databases in VB 6.0 and port them to Jabaco. This trying to make C++ do BASIC commands is hard, might as well use this instead: http:…

I remember of "on error resume next".

I also made ActiveX. It was a very good IDE.

Re: BASIC in C++

#12
I did something similar in C but I called it HereC. I mostly just did #define begin { and #define end } the other thing I did was make && to AND and || to OR was fun for a few minutes, then I never went back to it.

Re: BASIC in C++

#14
That's wonderful/abusive. There used to be a macro assembler for the Apple ][ that came with an add-on package of macros that provided a BASIC-like language. It was heavily advertised in Nibble Magazine.

It seems someone managed to dig it up, collect some recollections by the author and demo it a few years ago:

http://www.kansasfest.org/wp-content/uploads/2010-neubauer-m...

https://vimeo.com/13739643

Circle is complete.

Re: BASIC in C++

#16

] 10 PRINT "HELLO' ] RUN ERROR In file included from dummy.cpp:1: In file included from /usr/include/c++/v1/vector:243: In file included from /usr/include/c++/v1/__bit_reference:15: In file included from /usr/include/c++/v1/algorithm:594: /usr/include/c++/v1/memory:1425:36: error: calling a private constructor of class 'std::__1::unique_ptr >' ::new ((void*)__p) _Tp(_STD::forward (__args)...); ^ /usr/include/c++/v1/m…

templates are a inappropriate macro language. Everyone knows this except the C++ aficionados.

Re: BASIC in C++

#18

I did something similar in C but I called it HereC. I mostly just did #define begin { and #define end } the other thing I did was make && to AND and || to OR was fun for a few minutes, then I never went back to it.

But part of that was already done for you in iso646.h!

http://en.cppreference.com/w/cpp/language/operator_alternati...

Post reply on HN