Miscellaneous > Programming & Networking
Few questions about C++ syntax.
			anphanax:
			
			This is where i'm using "const &void" (Version 7, untested with Version 6):
--- Quote ---
#include 
using namespace std;
int _cdecl main(int carg, char varg[])
{
    const &void f = (void)main;
    const &void a = (const &void)"This sure does make sense.";
    char* b = (char*)&a;
    puts(b);
    return 0;
}
--- End quote ---
		
			solemnwarning:
			
			perl rules
--- Code:  ---#!/usr/bin/perl
$count = "1";
until($count == "0") {
  print "Never ending loop\n";
}
--- End code ---
		
			muzzy:
			
			
--- Quote from: anphanax ---This is where i'm using "const &void" (Version 7, untested with Version 6):
--- End quote ---
Now that's completely different from what you typed above, because this time you actually have a name there. However, it's still invalid. It appears MSVC parses it as const int &, merely ignoring the void specifier with a warning. It should damn be an error and not a warning, IMO.
		
			skyman8081:
			
			perl = bloated.
Observe, in python:
--- Code:  ---while True:
     print "Unending loop!"
--- End code ---
if it has a .py extension, you don't need the #!/usr/bin/python statement.
		
			muzzy:
			
			
--- Quote from: skyman8081 ---if it has a .py extension, you don't need the #!/usr/bin/python statement.
--- End quote ---
Wrong. It won't find the interpreter at all if it doesn't have #! in the beginning... unless you're using windows and it's running python interpreter by file association, in which case perl doesn't need it either.
		
Navigation
[0] Message Index
[*] Previous page
Go to full version