tanay-man
tanay-man
The above code is working. The `StructType` node of the ASR is used for the implementation of classes. According to the [documentation](https://docs.python.org/3/tutorial/classes.html), the members declared in the class body are...
@Thirumalai-Shaktivel What should I replace the restricted keywords in C & C++ with? Will renaming them `LFORTRAN_RESTRICTED_keyword` be ok?
I have implemented this in PR #2546. I have only implemented the mangling for the C backend; the C++ backend is still pending.
I would like to implement this. Can anyone provide resources to get started on? Is this similar to loop_vectorise in libasr/pass/ ?
@rebcabin If we compare the ast in both cases WIth error : ``` [(dtype (Attribute (Name numpy Load ) int16 Load ))] ``` Without error: ``` [(dtype (Name int16 Load...
Another code containing a similar (Name + attribute) node doesn't throw this exception ``` import math print(math.sqrt(9.0)) ```
The `TypeVar` is causing conflicts in the symbol table as both the `Struct` and `TypeVar` have the same names.
I agree the problem is since TypeVar has the same name, we cannot add Struct (class definition) to the symbol table.
> What does LPython currently put into the symbol table for `test = TypeVar("test")`? > ASR before adding the `Struct` node : ``` (TranslationUnit (SymbolTable 1 { __main__: (Module (SymbolTable...
Can we treat `self` as a special argument? Whenever a function is declared inside a class, it can either have no arguments (if it's a static method) or at least...