Questions tagged [unbound]
73 questions
0
votes
1 answer
OCaml Unbound value enf
I have a question about using a local function in a global function.
I tried to write the function which appears in the picture, but an error said
unbound value of f
It's strange that this error occurs. It should not appear because I defined the…

Amar Dje
- 5
- 1
- 4
0
votes
1 answer
Getting error unbound variable or constructor
The code is running fine on online Standard ML of New Jersey v110.78 but showing error on unix
SNL/NJ .93.
here is the code
fun check( num:int ) =
let
val x = List.tabulate(num, fn x => x*x)
val k =tl(x)
val y = List.filter( fn z => num…

Lakshya Srivastava
- 659
- 9
- 22
0
votes
1 answer
Getting error while defining a sequence of (all) Fibonacci numbers, in SML/NJ
here is my code:
val fibs =
let
val rec fibs_help =
fn(n, next) => Cons(n, (fn()=>fibs_help(next, n+next)) )
in
fibs_help(0, 1)
end;
val list = fibs(10)
And here is the error:
Error: unbound variable or constructor: Cons

Lakshya Srivastava
- 659
- 9
- 22
0
votes
1 answer
MS Access: Can the Unbound-continous form shows blank row like the bound form?
i'm trying to build a main/sub-form that get data from user and save them to two tables.
"Save" should be done ONLY when a "save button" is clicked.
I've tried the "bound forms" but they insert data to tables when they loose focus.
so i'm trying…

Sami
- 1
-1
votes
2 answers
UnboundLocalError Leetcode #5. Longest Palindromic Substring
Leetocode keeps giving me this UnboundLocalError, and I don't know why...
This is my code
class Solution:
def longestPalindrome(self, s: str) -> str:
def isPalindrome(s):
if len(s) == 1:
return True
…
-1
votes
1 answer
created Unbound server, can dig but getaddrinfo() fails
I was able to start an unbound server and now can succecifuly use the dig command but can't use any other command due to name resolution failing.
$ dig one.one.one.one
; <<>> DiG 9.16.1-Ubuntu <<>> one.one.one.one
;; global options: +cmd
;; Got…

muny
- 87
- 7
-1
votes
1 answer
Have unbound use only ipv6 transport
So I wanted to have Unbound use IPv6 transport only and not use IPv4 when doing lookups. (This is for fun. I want to see all the dns look ups done in IPv6 for educationsl purpose.)
My computer has IPv6 connectivity (can do curl -6) so I created an…

muny
- 87
- 7
-1
votes
1 answer
Common Lisp Variable addFraction is unbound
Why does it say that the variable addFraction is Unbound?
(defun addFraction (N1 D1 N2 D2)
(format t "~d ~d"
(+ (+ (lcm D1 D2) N1) (+ (lcm D1 D2) N2))
(lcm D1 D2)))
When I ran the code it says this:
#

popsymark
- 9
- 2
-1
votes
2 answers
local variable referenced before assignment in recursion
My program isn't working.
It is meant to be
you have an array and a code
if the code is 0 then you have to add up the numbers
if it is anything else then you have to multiply them
I want it to use recursion but when you get to less then 5 numbers…
user14068348
-1
votes
1 answer
i have gotten an UnboundLocalError in python3 while making a simple snake game using pygame in python
This is the Error i got in python while executing a simple snake game program that i was working on
File "C:\Users\vicky\OneDrive\Desktop\ALL PYTHON\snake game final\snake_game.py", line 147, in gameLoop
if event.type ==…

Thanks
- 21
- 7
-1
votes
1 answer
Configuring DNS Resolution without unbound.conf
I've recently ran into an issue where in I need to configure the DNS Resolution of a docker container.
Basically, the default configuration for the applications we're trying to containerize needs some sort of unbound configuration for DNS…

Migsarmiento
- 153
- 6
-1
votes
1 answer
NetworkManager with unbound as dns
I have a archlinux installation on an Virtual Box which I use NetworkManager to handle my connection.
After I try to switch from using NetworkManager for dns too 'unbound' I don't seem to get them to run together. I follow the guide for unbound on…

ihet
- 47
- 7
-2
votes
1 answer
C# Winforms: Add new row to unbound(!) datagridview with the use of column names
I have a custom DGV (dgvPaths) with 2 buttons as first 2 columns:
DataGridViewButtonColumn btnColRemove = new DataGridViewButtonColumn();
btnColRemove.Name = "Remove";
btnColRemove.HeaderText = "Remove";
…

tar
- 156
- 2
- 13