Skip to content

Quoting a ;compile will result in the second language used #216

@McModknower

Description

@McModknower

If i first ;compile

```python
print("Hello World!")
```

and then quote that one with a ;compile

```c
int main() {
return 1;
}
```

i get a gcc error message:

<source>: In function 'main':
<source>:3:1: warning: implicit declaration of function 'print' [-Wimplicit-function-declaration]
    3 | print("Hello World!")
      | ^~~~~
<source>:3:22: error: expected ';' before 'return'
    3 | print("Hello World!")
      |                      ^
      |                      ;
    4 | 
    5 | return 0;
      | ~~~~~~                
Build failed

Since it is compiling the code from the first text it should also use the language of the first text.

Of course this is a niche use case and as such low priority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions