Search found 2956 matches

by marcov
Sep 05, 2020 17:17
Forum: General
Topic: Commandline parsing problem
Replies: 25
Views: 2049

Re: Commandline parsing problem

I reread the thread in more detail (and better separating old from new posts), and indeed vs does interpret quotes.

testprogram "C:\Documents and Settings\Zippy\"

prints trailing "

Ugh
by marcov
Sep 04, 2020 23:01
Forum: General
Topic: Commandline parsing problem
Replies: 25
Views: 2049

Re: Commandline parsing problem

Afaik VIsual Studio does not do this, so I doublechecked. Yes, MSDN has old functions for it (NT4 POSIX system?), but VS is not using them, running e.g. int main(int argc, char *argv[]) { printf("%s %d\n", argv[1],strlen(argv[1])); return 0; } in e.g. VS 2015 with \t as commandline param (...
by marcov
Sep 04, 2020 7:26
Forum: General
Topic: Commandline parsing problem
Replies: 25
Views: 2049

Re: Commandline parsing problem

Ubuntu mate 18.04, 64-bit, mate terminal 1.20.0: On *nix it depends on the shell how parameters are expanded. IOW the escapes are processed before the parameters are passed to the program. The argv/argc generating API functions are probably meant to imitate this. But that is *nix emulation, and IMH...
by marcov
Aug 30, 2020 19:41
Forum: General
Topic: Commandline parsing problem
Replies: 25
Views: 2049

Re: Commandline parsing problem

I'm running under 32-bit Windows and generating 32-bit apps. This behaviour is an annoyance. ISTM that anything on the command line should be interpreted as is, otherwise what is the point of the Command keyword? InterlockedCompareExchange64 is afaik 64-bit only, so something in that header is eith...
by marcov
Aug 30, 2020 10:28
Forum: General
Topic: Commandline parsing problem
Replies: 25
Views: 2049

Re: Commandline parsing problem

Are you on a 32-bit windows? Or do you only generate 32-bit apps?
by marcov
Aug 30, 2020 9:39
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 228
Views: 19599

Re: FreeBASIC 1.08 Development

Note that allowing $ in the symbol table might force it creeping back into non legacy code via inter module connections, Since an exported symbol must then be match in the spelling. IOW if you declare A$ in module A and export it, if it is in the symbol table as A$ and mangled as such, module B must...
by marcov
Aug 30, 2020 9:37
Forum: General
Topic: String garbage collection and handling thousands of strings
Replies: 5
Views: 312

Re: String garbage collection and handling thousands of strings

Note that instead of a linked list (which has O(N) behaviour in lookup) it is better to use a tree. Some n-nary tree that doesn't have to be (close to) perfectly balanced. Every record in the tree has the linenumber of the first line in it, and on line delete/insert you walk up the tree and update t...
by marcov
Aug 28, 2020 20:23
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 228
Views: 19599

Re: FreeBASIC 1.08 Development

What if the '-lang fb' lexer precluded the very possibility of suffixes - particularly '$' - by including those symbols within the variable name? e.g. dim a$b$c as integer . Then in order to support legacy functions, it's just a matter of making sure both forms (e.g. mid and mid$ ) are registered a...
by marcov
Aug 27, 2020 17:38
Forum: General
Topic: trouble with C runtime !
Replies: 1
Views: 184

Re: trouble with C runtime !

execve is afaik not a C standard library call, but a Unix/Posix call. The Windows call is CreateProcess(ex)[A|W] (from freebsd man page: The execl(), execv(), execle(), execlp() and execvp() functions conform to IEEE Std 1003.1-1988 ("POSIX.1"). ) System() however is c standard lib. (again...
by marcov
Aug 27, 2020 15:06
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 228
Views: 19599

Re: FreeBASIC 1.08 Development

Hungarian notation is a sign of (1) a defective, too weak typed language (2) and unproductive IDE. Hovering above a variable can simply show declaration/type. Well I've heard people argue that a language that requires an IDE to be productive is not necessarily a good thing. I also hear a lot of peo...
by marcov
Aug 27, 2020 14:49
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 228
Views: 19599

Re: FreeBASIC 1.08 Development

What if the '-lang fb' lexer precluded the very possibility of suffixes - particularly '$' - by including those symbols within the variable name? e.g. dim a$b$c as integer . Then in order to support legacy functions, it's just a matter of making sure both forms (e.g. mid and mid$ ) are registered a...
by marcov
Aug 26, 2020 19:55
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 228
Views: 19599

Re: FreeBASIC 1.08 Development

Sometimes suffixes are essential. Print 1234567*1234567 Print 1234567ull*1234567 Sleep gives -557712591 1524155677489 in 32-bit. In 64-bit we are OK. This is something totally else. But still I don't agree in this case either. I think a cast like syntax would be better, better readable and more uni...
by marcov
Aug 26, 2020 19:53
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 228
Views: 19599

Re: FreeBASIC 1.08 Development

Why make unnecessary shorthand exceptions. What's next, assign every type a char from the unicode table as suffix? Being able to see the type of a variable increases the readability of code. It disturbs as much as it adds. Coded messages(letters that are not normal syllables and interpunction) slow...
by marcov
Aug 26, 2020 14:46
Forum: Projects
Topic: Old school text adventure as a way of re-learning coding
Replies: 45
Views: 2987

Re: [off topic?] Ice creams and keys

Cassis (black currant)
Wallnut
by marcov
Aug 23, 2020 9:42
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 228
Views: 19599

Re: FreeBASIC 1.08 Development

that the $ suffix allows an important distinction between strings and non-string variables. It never was for the programmer's benefit, $ and % are just to signal the interpreter to not wrap a variable in a variant-like record for performance reasons(according to the source of Micro Soft Basic V2). ...

Go to advanced search